“java -Xmx2048m -version” falhando no Red Hat Linux 4

0

Temos duas caixas Red Hat Linux 4. Os detalhes da versão são os mesmos para as duas caixas:

Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
Kernel \r on an \m

Linux <hostname> 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

No entanto, quando emitimos o comando java -Xmx2048m -version , está falhando em uma caixa. Por favor, ajude como identificar onde o problema poderia estar:

Na caixa 1:

$ java -Xmx2048m -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Server VM (build 20.5-b03, mixed mode)

$ free -m
             total       used       free     shared    buffers     cached
Mem:          4952       4029        923          0        189       1289
-/+ buffers/cache:       2551       2401
Swap:         8189         36       8153

$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
pending signals                 (-i) 1024
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 49152
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Na caixa 2:

$ java -Xmx2048m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

$ free -m
             total       used       free     shared    buffers     cached
Mem:          9990       2871       7118          0         71        218
-/+ buffers/cache:       2581       7408
Swap:         8189          0       8189

$ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
pending signals                 (-i) 1024
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
stack size              (kbytes, -s) 2048008
cpu time               (seconds, -t) unlimited
max user processes              (-u) 90112
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Atenciosamente, AR.

    
por user206245 28.01.2017 / 20:36

0 respostas

Tags