You are not logged in.

Unanswered posts

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

dlrem
Member
4 posts

[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


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

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


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

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

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

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

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

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

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


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

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

it already was.

Offline

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

jandry
Talend Team


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

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

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
180 posts

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

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

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

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

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

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy