One Star

[resolved] Could not create the Java virtual machine.

Hello,
I install TOS v2.4 on Vista with TalendOpenStudio-win32-x86.in file :
-vmargs
-Xms500m
-Xmx500m
-XXSmiley TongueermSize=128m
-XX:MaxPermSize=128m
I can start TOS and create job, but when I run a job (even a simple job like tRowGenerator => tLogRow), I get the message:
Starting job simple at 17:21 26/06/2008.
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Job simple ended at 17:21 26/06/2008.
Remark: I can run the job in debug mode.
Thanks.

  • Data Integration
25 REPLIES
Employee

Re: [resolved] Could not create the Java virtual machine.

Hi dlrem,
prefer this conf:
-vmargs
-Xms40m
-Xmx500m
-XX:MaxPermSize=128m

Xms must not be same that Xmx
How much total memory do you have in your computer ?
One Star

Re: [resolved] Could not create the Java virtual machine.

Ok I test with your conf, but I have the same problem...
The computer has 2Mb RAM...
Employee

Re: [resolved] Could not create the Java virtual machine.

- go to menu Window > Preferences
- then go to category Talend > Run / Debug
finally change conf of Run job such as:
Xms128M
Xmx512M
I hope it will work :-)
One Star

Re: [resolved] Could not create the Java virtual machine.

OK it's run fine !
Thanks a lot Smiley Happy
One Star

Re: [resolved] Could not create the Java virtual machine.

Normally it's because WinZozz added a java executable in WINDOWS/system32/.
Moving the JAVA_HOME/bin entry in the Path variable to the first position should solve the problem.

V.
One Star

Re: [resolved] Could not create the Java virtual machine.

I have similar issue where i get the below message on win xp
--------------------------------------------
Talend Open Studio
Version: 3.2.0M1
Build id: r26328-20090706-1642
--------------------------------------------

Starting job TEST_1 at 17:38 20/08/2009.
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Job TEST_1 ended at 17:38 20/08/2009.
--------------------------------------------------
initial conf
TalendOpenStudio-win32-x86.ini
-vmargs
-Xms40m
-Xmx500m
-XX:MaxPermSize=128m
Current conf
TalendOpenStudio-win32-x86.ini
-vmargs
-Xms1200m
-Xmx1240m
-XX:MaxPermSize=128m
--------------------------
machine memory = 1.94 GB
----------------------
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode, sharing)
One Star

Re: [resolved] Could not create the Java virtual machine.

Hi,
please reduce the value for minimum memory:
-Xms1200m
to
-Xms500m
(for example)
Bye
Volker
One Star

Re: [resolved] Could not create the Java virtual machine.

Hi! Same problem, I tried to solve using your hints but no way.
OS WinXP SP3
TalendOpenStudio-win32-x86.ini:
-vmargs
-Xms40m
-Xmx500m
-XX:MaxPermSize=128m
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
Path=C:\Programmi\Java\jre6\bin;
Talend Open Studio version TOS-Win32-r29643-V3.2.0RC1 (but same problem with 3.1.4 ...)
Error appears when I run jobs:
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
or when I try to add a metadata in guessing schema:
Could not create the Java virtual machine.
Preview error. Some settings must be changed.
Note: Preview errors are generally due to a wrong encoding setting.
org.talend.designer.runprocess.shadow.ShadowFilePreview.preview(Unknown Source)
org.talend.repository.ui.utils.ShadowProcessHelper.getCsvArray(Unknown Source)
org.talend.repository.ui.wizards.metadata.connection.files.delimited.DelimitedFileStep2Form$PreviewProcessor.nonUIProcessInThread(Unknown Source)
org.talend.commons.ui.swt.thread.SWTUIThreadProcessor$1.run(Unknown Source)
but it's not an encoding issue ...
Thank you in advance.
Stefano
One Star

Re: [resolved] Could not create the Java virtual machine.

Stefano,
did you ever get around this issue? i'm having the same issue w/ 3.2.3 and jre1.6.0_18
i have 2GB of memory so i'm using these .ini settings:
-vmargs
-Xms256m
-Xmx512m
-XX:MaxPermSize=128m
thanks.
Community Manager

Re: [resolved] Could not create the Java virtual machine.

Hello kevins
As Vincenzo vitale said, try to move the JAVA_HOME/bin entry in the Path variable to the first position should solve the problem.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Could not create the Java virtual machine.

it already was.
Employee

Re: [resolved] Could not create the Java virtual machine.

The problem is that the JVM cannot reserve the space.
The ini memory settings are only for Talend, not for the running job. You need to set those in the Preferences under Talend->Run and Debug, which, by default is set to Xmx 1024.
Try decreasing the memory setting in the Preferences and run it again. If that doesn't work, export the job as a script and try running it outside of the Studio via the Command Prompt.
One Star

Re: [resolved] Could not create the Java virtual machine.

Jandy,
thanks, that allowed the job to run fine.
One Star

Re: [resolved] Could not create the Java virtual machine.

Hi,
I am running TIS version 3.2.1 and have tried many combinations of the memory setting but still get :-
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
I have 2.5Gb of memory.
Current settings are :-
-vmargs
-Xms256M
-Xmx1536M
-XX:MaxPermSize=128m
I want to be able to run the debugger, so exporting the job and running from the command line is not feasible.
One of the posts says :-
'Moving the JAVA_HOME/bin entry in the Path variable to the first position should solve the problem.'
but I do not know how to do this??
Can anyone help?
Four Stars

Re: [resolved] Could not create the Java virtual machine.

If your OS is Windows, Windows itself will always reserve HALF of all available memory for itself, leaving the other half for all applications. This means you may have significantly less memory available for the JVM than you might think.
One Star

Re: [resolved] Could not create the Java virtual machine.

I have the same issue since some days : I can't launch the jobs that I create, but I can launch those already created...
Windows XP
Talend Open Studio 3.2.1.r31371
-Xms1024M
-Xmx2048M
- Java : jre6
One Star

Re: [resolved] Could not create the Java virtual machine.

i have the same problem
Windows XP
Talend Open Studio4.0
RAM 1.75 GO
- Java : jre6
I have chaged -Xms 256 to 500
and -Xmx1024M to -Xmx2048M
but it doesn't work !!!
any ideas !!!
One Star

Re: [resolved] Could not create the Java virtual machine.

Same issue, but I am pretty sure it is purely down to the fact that the max ammount that you tried to reserve is not actually available to the JVM. This did not work: "-Xms256m -Xmx1024m" but when I changed it to "-Xms256m -Xmx512m" that was fine (I used the -XX:+UseParallelGC garbage collector)
Try gradually reducing the Xms and Xmx and see what happens
One Star

Re: [resolved] Could not create the Java virtual machine.

I have the same issue since some days : I can't launch the jobs that I create, but I can launch those already created...

It was the project properties who were incorrect, I change them to ""-Xms256m -Xmx1024m" and I can now create job without any problem.
One Star

Re: [resolved] Could not create the Java virtual machine.

I have the same issue since some days : I can't launch the jobs that I create, but I can launch those already created...

It was the project properties who were incorrect, I change them to ""-Xms256m -Xmx1024m" and I can now create job without any problem.
Can you state where in Project properties you found this setting as there are quite a few different options there.
For fellow newbies, Project properties is found under File > Edit Project Properties
One Star

Re: [resolved] Could not create the Java virtual machine.

So I'm still having issues here. Am running Windows 7 64 bit. Was hoping a basic task of importing several tables from Excel could just run out the box as was looking to recommend it to my company but doesn't appear to.

Starting job Test at 14:38 31/01/2015.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Picked up _JAVA_OPTIONS: -Xmx1024M
Error occurred during initialization of VM
Could not reserve enough space for object heap
Job Test ended at 14:38 31/01/2015.

Have tried: 
1) Win Control Panel > Environment variables > System variable:  _JAVA_OPTION = -Xmx1024M
2) Advanced settings in the Job test being set to 1024M
3) Windows > Preferences > Java > Talend > Run/Debug (not to be confused  Java > Run Debug ?!)  to 1024M
4) Installing 64 bit JRE
5) Closing down other apps, have around 10 gigs of free memory
One Star

Re: [resolved] Could not create the Java virtual machine.

Ok got it sorted -- there Talend DI comes in two .exe. The one that shows up on the Start menu is 32 bit. Look in the actual folder to launch the 64 bit.
Moderator

Re: [resolved] Could not create the Java virtual machine.

Hi PuzzledGeek,

Usually, with Talend Open Source, TOS_DI-win-x86_64.exe(.ini) is for Window 7 64 bit and TOS_DI-win32-x86.exe(.ini) is for win7 32 bit.
Thanks for your feedback.

Best regards
Sabrina
One Star

Re: [resolved] Could not create the Java virtual machine.

Hi xdshi
Where do I get the TOS_DI-win-x86_64.exe download ?
I have a 64 bits machine to try TOS.   The default download from here:

seems to be TOS_DI-win32-x86.exe
The IT folks says 32 bits should work on 64 machine.   It doesn't seem to work.    I keep running into this Virtual Machine issue:
I can install TOS_DI-win32-x86.exe and run a TOS DI demo on my old 32 bit PC.   However, on my newer 64 bits machine, I keep running into this error
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error: Could not create the Java Virtual Machine.
Any idea how to resolve? if TOS_DI-win-x86_64.exe is required, can you please point me to the download site.
Thank you for your help
Mark
One Star

Re: [resolved] Could not create the Java virtual machine.

You can run 32 or 64 bit on win  64 bit machine. TOS_DI-win_x86_64.exe is part of the download. It's under the studio folder.