[Labs-l] Need some help to run a Java program with jsub

Antoine D hercule.wikipedia at gmail.com
Mon Dec 9 13:23:55 UTC 2013


Hello,

I have troubles to migrate my java program from the Toolserver to Labs. On
Irc I was told that I could find some help with this mailing list.

When I connect to tools-login.wmflabs.org, I run "become herculebot" and
can run with no problem the following command line :

java -Xmx128M -Xms128M -jar /data/project/herculebot/Wikipedia.jar


So I want to add it to my crontab. I run "crontab e" and add the following
line :

37 * * * * cd /data/project/herculebot/ && usr/local/bin/jsub -once -mem
256m -N Cacographies -j y java -Xmx128M -Xms128M -jar
/data/project/herculebot/Wikipedia.jar

Every time I have the same output in my Cacographies.out file :

 Error occurred during initialization of VM
 Could not reserve enough space for object heap
 Error: Could not create the Java Virtual Machine.
 Error: A fatal exception has occurred. Program will exit

I tried to add more memory with -mem, I tried to change my Xmx and my Xms
parameters, but nothing works.

Is there an other user that run some Java tools ? I really need some help,
as the Toolserver will soon close.

Thanks in advance,


Hercule
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20131209/f1561304/attachment.html>


More information about the Labs-l mailing list