One Star

Error occurred during initialization of VM

Hello all,
I have created a simple job and when trying to run it I get :
Error occurred during initialization of VM
Could not reserve enough space for object heap
I have a very shitty PC with 1GB of RAM.
Is there any way to avoid this error ?
Kind regards,
Marc
4 REPLIES
One Star

Re: Error occurred during initialization of VM

Hi Marc,
does this error appear if you run the script inside or outside of TOS?
Generally this error means there is not enough memory to start the JVM. The memory which the JVM will allocate could be set with the following options:
-Xms40m -Xmx500m
The first one is the minimum memory (40 MB in this case), the second one the maximum memory (500 MB).
You can set the values:
For TOS in the ini file you found in the installation path.
For your script inside of TOS go to menu "Windows" -> "Preferences" -> "Talend" -> "Run/Debug"
For your script outside of TOS in the exported shell-script.
Try to reduce the values (especially the maximum).
Bye
Volker
One Star

Re: Error occurred during initialization of VM

Vielen dank Volker,
The error occurs when running from within TOS
I will try tweaking the memory settings as you suggest.
Best Regards,
Marc G.
One Star

Re: Error occurred during initialization of VM

Hallo Marc,
keine Ursache :-)
By the way: Feedback about your options after tweaking it is welcome.
Bye
Volker
One Star

Re: Error occurred during initialization of VM

Guten Morgen Volker,
I really did not (have to) experiment much
I put the lower value to 128 and the max value to 512 and that fixed the issue.
My PC has 1 GB RAM / Windows XP but lots of other stuff running (too much...)
Thanks again for your help

Marc G.