Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Labels (2)
4 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

Hallo Marc,
keine Ursache 🙂
By the way: Feedback about your options after tweaking it is welcome.
Bye
Volker
Anonymous
Not applicable
Author

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.