[GE users] Setting h_vmem breaks javac

reuti reuti at staff.uni-marburg.de
Fri Feb 12 16:32:37 GMT 2010


Hi,

Am 31.01.2010 um 17:35 schrieb eddale:

> 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?

did you get any improvement? I tried various settings and it was  
always working as expected, but the memory in this machine was  
limited anyway. What is happening when you set all the limits also on  
the commandline one by one; this way you can investigate the faulty  
setting.

-- Reuti


>
> 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].

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

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



More information about the gridengine-users mailing list