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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Could not create the Java virtual machine

Tags:
Hello,
On my PC, when I run a job I have the following error:
Could not create the Java virtual machine.
Error occurred DURING initialization of VM
Could not reserve enough space for object heap
So far Talend worked well.
I think the problem occurred after a Windows update to install languages.
In this forum, it is given as a solution, change the arguments as follows:
Xms128m
Xmx512M
but this does not work.
Other actions realized, without success:
- JAVA ReInstallation
- Talend ReInstallation (last version)
thank you
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks shongs,
I have retried to use script command for executed my Talend Job.
I have optimized my argument and now it's Ok.
After verification, I noticed than used arguments are defined in advanced Settings (Tabs Execute). Before I modified the arguments in my preference settings.
Emmanuel

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Anonymous
Not applicable
Author

Hi,
I have already try solution of this topic ( http://community.talend.com:80/t5/Design-and-Development/resolved-Could-not-create-the-Java-virtual-...);
But these solutions don't work:
- decrease arguments value Xms, Xmx.
- Moving the JAVA_HOME/bin entry in the Path variable to the first position (Path=C:\Programmi\Java\jre6\bin 0683p000009MA9p.png
Regards,
Emmanuel
Anonymous
Not applicable
Author

Hi
Open the CMD windows and execute the command as showed in my screenshot to see the max value of Xmx parameter on your computer.
As showed, the max value of Xmx parameter is 1444M on my machine.
You must set the value less than the max value!
Best regards
Shong
Anonymous
Not applicable
Author

Thanks shongs,
I have retried to use script command for executed my Talend Job.
I have optimized my argument and now it's Ok.
After verification, I noticed than used arguments are defined in advanced Settings (Tabs Execute). Before I modified the arguments in my preference settings.
Emmanuel
Anonymous
Not applicable
Author

Hi
I have retried to use script command for executed my Talend Job.
I have optimized my argument and now it's Ok.

Good news! Thanks for your feedback!
After verification, I noticed than used arguments are defined in advanced Settings (Tabs Execute). Before I modified the arguments in my preference settings.

To set the jvm parameters in advacned settings is only valid for the current job, however, the modification of jvm arguments in preference will be valid for all jobs.
Best regards
Shong
Anonymous
Not applicable
Author

Most of the time you can fix this problem by uninstalling the Java runtime and then reinstalling it all over again.

You can also try increasing the amount of system memory allocated to the Java virtual machine by setting an environment variable.

Open the Control Panel
Go to System
Go to Advanced Systems Properties
Then Environment Variables
In System Variables, click Add
New Variable Name: _JAVA_OPTIONS
New Variable Value: -Xmx512M
Click OK

That’s it, your Java program should now be able to execute properly.
For those interested, Java -Xmx/s is the configuration parameter that control the amount of memory Java uses.

Xmx sets the maximum heap memory size
Xms sets the minimum heap memory size