[GE users] Setting h_vmem breaks javac

eddale eddale at cs.unc.edu
Sun Jan 31 16:35:44 GMT 2010


Hello all,

First of all, I apologize for the long email.

As the subject says, if I set h_vmem in a queue then running javac (and 
java; javac is just a reduced test case) yields the following error:

Error occurred during initialization of VM
Could not reserve enough space for object heapCould not create the Java 
virtual machine.

I've looked at a number of posts on this mailing list and elsewhere that 
mostly suggest that I also need to set the stack size and potentially 
the data segment size to get this to work, however, nothing has helped.

Here's my simplified test case:

eddale at bass-comp0 ~$ qconf -Mq tq.without && echo && qrsh -q t.q ulimit 
-aH && echo && qrsh -q t.q ulimit -aS && echo && qrsh -q t.q javac
eddale at bass-comp0.cs.unc.edu modified "t.q" in cluster queue list

core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 70144
max locked memory       (kbytes, -l) 1048576
max memory size         (kbytes, -m) unlimited
open files                      (-n) 131072
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) unlimited
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1048576
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 70144
max locked memory       (kbytes, -l) 1048576
max memory size         (kbytes, -m) unlimited
open files                      (-n) 131072
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) unlimited
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1048576
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Usage: javac <options> <source files>
... it works!

eddale at bass-comp0 ~$ qconf -Mq tq.with && echo && qrsh -q t.q ulimit -aH 
&& echo && qrsh -q t.q ulimit -aS && echo && qrsh -q t.q javac
eddale at bass-comp0.cs.unc.edu modified "t.q" in cluster queue list

core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) 262144
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 70144
max locked memory       (kbytes, -l) 1048576
max memory size         (kbytes, -m) unlimited
open files                      (-n) 131072
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 262144
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1048576
virtual memory          (kbytes, -v) 2097152
file locks                      (-x) unlimited

core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) 262144
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 70144
max locked memory       (kbytes, -l) 1048576
max memory size         (kbytes, -m) unlimited
open files                      (-n) 131072
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 262144
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1048576
virtual memory          (kbytes, -v) 2097152
file locks                      (-x) unlimited

Error occurred during initialization of VM
Could not reserve enough space for object heapCould not create the Java 
virtual machine.

The contents of tq.without set all of the resources to INFINITY. The 
contents of tq.with set h_vmem/s_vmem to 2G and 
h_stack/s_stack/h_data/s_data to 256M.

Does anyone have any clue how to resolve this?

Thanks,
Edward

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=242156

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list