You are not logged in.

#1 2008-06-26 16:28:13

dlrem
Member
4 posts

dlrem said:

[resolved] Could not create the Java virtual machine.

Tags: [error]

Hello,

I install TOS v2.4 on Vista with TalendOpenStudio-win32-x86.in file :
-vmargs
-Xms500m
-Xmx500m
-XX:PermSize=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. [exit code=1]

Remark: I can run the job in debug mode.

Thanks.

Offline

#2 2008-06-26 16:40:38

amaumont
Talend Team


amaumont said:

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 ?

Last edited by amaumont (2008-06-26 16:42:37)

Offline

#3 2008-06-26 16:50:33

dlrem
Member
4 posts

dlrem said:

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...

Offline

#4 2008-06-26 17:02:14

amaumont
Talend Team


amaumont said:

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 :-)

Offline

#5 2008-06-26 17:07:28

dlrem
Member
4 posts

dlrem said:

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

OK it's run fine !

Thanks a lot smile

Offline

#6 2008-12-24 11:17:51

Vincenzo vitale
Guest

Vincenzo vitale said:

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.

#7 2009-08-20 17:59:21

Ahsan
Guest

Ahsan said:

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. [exit code=1]

--------------------------------------------------

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)

#8 2009-08-26 19:50:25

Volker Brehm
Member
1139 posts

Volker Brehm said:

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

Hi,

please reduce the value for minimum memory:

-Xms1200m
to
-Xms500m

(for example)

Bye
Volker

Offline

#9 2009-10-03 10:29:34

Stefano
Guest

Stefano said:

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

#10 2010-01-31 19:06:24

kevins
Guest

kevins said:

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.

#11 2010-02-01 02:25:32

shong
Talend Team


shong said:

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


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the global leader of open source data management and application integration solutions!

Offline

#12 2010-02-01 06:01:57

kevins
Member
3 posts

kevins said:

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

it already was.

Offline

#13 2010-02-01 19:18:26

jandry
Talend Team


jandry said:

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.

Last edited by jandry (2010-02-01 19:19:43)

Offline

#14 2010-02-06 01:58:50

kevins
Member
3 posts

kevins said:

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

Jandy,

thanks, that allowed the job to run fine.

Offline

#15 2010-02-20 00:57:20

tnewman
Member
194 posts

tnewman said:

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?


------------------
Talend Version - TIS 4.1.2
Generated Code - Java
OS - WinXP SP3 / Linux

Offline

#16 2010-03-10 23:03:52

jholman
Member
219 posts

jholman said:

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.

Offline

#17 2010-03-17 11:27:12

François
Member
36 posts

François said:

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


Sorry for my english, I'm French.

Offline

#18 2010-05-11 17:43:07

lolo
Guest

lolo said:

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 !!!

#19 2010-06-15 09:07:44

Art
Guest

Art said:

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

#20 2010-10-15 09:02:28

François
Member
36 posts

François said:

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

François wrote:

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.


Sorry for my english, I'm French.

Offline

#21 2015-01-31 14:44:09

PuzzledGeek
Member
3 posts

PuzzledGeek said:

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

  François wrote:
François wrote:

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

Offline

#22 2015-01-31 15:48:39

PuzzledGeek
Member
3 posts

PuzzledGeek said:

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. [exit code=1]

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

Last edited by PuzzledGeek (2015-01-31 15:49:47)

Offline

#23 2015-01-31 20:27:43

PuzzledGeek
Member
3 posts

PuzzledGeek said:

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.

Offline

#24 2015-02-02 08:55:13

xdshi
Talend Team


xdshi said:

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


What we can do is to make sure that Talend will be your best choice!

Offline

#25 2015-02-19 03:53:31

MarkMnei
Member
3 posts

MarkMnei said:

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

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy