Slave File not running on Linux
Dave Briggs
2018-05-07
Hi there,

We're struggling to get the Slave file to run on a Linux Server (RHEL or AWS Linux 1). We have it running on another Linux server but cannot for the life of us see the difference.
We’re convinced that there is a memory allocation issue somewhere.
If we run strace on the Slave file on the new Linux machine we get the following:


mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7c8d000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7f63000
read(3, "\0 \0\1\2\3\4\5\6\7\10\t\n\v\f\r\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35"..., 88150) = 88150
close(3) = 0
open("hob/hansa.fru", O_RDONLY|O_NOATIME) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=3337050, ...}) = 0
mmap2(NULL, 4290723120, PROT_READ, MAP_SHARED, 3, 0) = -1 ENOMEM (Cannot allocate memory)
open("hob/hansa.tou", O_RDONLY|O_NOATIME) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=127071, ...}) = 0
mmap2(NULL, 4290723120, PROT_READ, MAP_SHARED, 4, 0) = -1 ENOMEM (Cannot allocate memory)

open("hob/hansa.upc", O_RDONLY|O_NOATIME) = 5

fcntl64(5, F_SETFD, FD_CLOEXEC) = 0

fstat64(5, {st_mode=S_IFREG|0644, st_size=3504, ...}) = 0
mmap2(NULL, 4290723120, PROT_READ, MAP_SHARED, 5, 0) = -1 ENOMEM (Cannot allocate memory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault



Note that it's trying to open files that are 3337050 bytes and allocate 4.29Gb to do that - which fails… - this happens on RHEL and AWS Linux 1.

On an existing Linux server which is on the same version of Linux the same section of the strace log reads as:


mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7497000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7496000
read(3, "\0 \0\1\2\3\4\5\6\7\10\t\n\v\f\r\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35"..., 88150) = 88150
close(3) = 0
open("hob/hansa.fru", O_RDONLY|O_NOATIME) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=3337050, ...}) = 0

mmap2(NULL, 3337050, PROT_READ, MAP_SHARED, 3, 0) = 0xfffffffff7167000
close(3) = 0
open("hob/hansa.tou", O_RDONLY|O_NOATIME) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=127071, ...}) = 0

mmap2(NULL, 127071, PROT_READ, MAP_SHARED, 3, 0) = 0xfffffffff7147000
close(3) = 0
open("hob/hansa.upc", O_RDONLY|O_NOATIME) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=3504, ...}) = 0
mmap2(NULL, 3504, PROT_READ, MAP_SHARED, 3, 0) = 0xfffffffff7146000
close(3)


so there it's trying to allocate memory that is equivalent in size to the file it's reading.


Do you know if there are any Linux memory settings that would affect the above strace logs like this?

Thanks

Per
2018-05-07
Hello.

Thank you for your message.


First thing would be to check your server memory here, it could be that the server is running out of it.
Also check the status for the servers RAM.

Br.
Per

HansaWorld Support
Dave Briggs
2018-05-07
回答者Per17:10 7 五月 2018
Hello. Thank you for your message. First thing would be to check your server memory here, it could be that the server is running out of it. Also check the status for the servers RAM. Br. Per HansaWorld Support
Hi there,

Thanks for your reply.

The server has 16GB of RAM.
Do you know of any Linux memory settings that could affect the allocation of memory?

Thanks

Kind regards

Dave
Per
2018-05-08
Hello.

Just a quick question, form what country do you operate?
What is your customer number or name of your company?


Br.
Per
HansaWorld Support
该话题已关闭,无法再评论。请新建话题。
返回到列表
最新留言
Hi there, There is currently no GUI client for Linux. Only a server version is available. Than...
17:35 3 九月 2025
Hi, When I add a labour service item (cost 10 per Hr) to production, the NL posting is incorrect....
08:10 19 八月 2025

我们在正常工作时间对论坛进行维护,旨在24小时内回复所有问题

您可以通过选择主题列表右上角的 "星星 "图标来订阅本论坛的任何帖子的通知。你必须登录后才能使用这一功能。