Windows machines: Could not create the Java virtual machine

Questions and answers for all installation-related topics for Servoy products

Windows machines: Could not create the Java virtual machine

Postby Robert Huber » Wed Jan 18, 2012 10:48 am

Hi

After having our application 2 weeks in production, we get on some Windows 7 machines the following error: "Could not create the Java virtual machine." See attached file.
It only happens on Windows machines, it does not happen on Macs (so far).
It seems to appear randomly, but regularly.
After analyzing and testing, our hypothesis is it has something to do with the Java Update process called jusched.exe on Windows. We could not track down what the problem is, but it seems to be related to this process, or at least, something happens when this process is running.

Anyone seen similar problems on Windows 7 (or Windows Vista, XP)?

Regards,
Attachments
Error on Windows machines.png
Error on Windows machines.png (85.58 KiB) Viewed 10401 times
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Windows machines: Could not create the Java virtual mach

Postby jcompagner » Wed Jan 18, 2012 6:13 pm

looks very weird to me if that update process has anything to do with that.
That is just a scheduler process that now and then checks if there is a new version

I think for many windows users that process is running, it is also for me right now.

Maybe you can find something in this kind of dir:

C:\Users\[username]\AppData\LocalLow\Sun\Java\Deployment\log

there you have various log files.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Windows machines: Could not create the Java virtual mach

Postby Robert Huber » Wed Jan 18, 2012 7:11 pm

Hi Johan

We have found this behavior now on 4 quite different Windows 7 machines, 2 Laptops and 2 Desktops.

I will have a look at the suggested logs, thanks.

Regards,
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Windows machines: Could not create the Java virtual mach

Postby jcompagner » Wed Jan 18, 2012 10:26 pm

What kind of jvm properties are you using on three admin page for the clients?

Do you use plugins that have native libs?
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Windows machines: Could not create the Java virtual mach

Postby Robert Huber » Thu Jan 19, 2012 11:14 am

Johan

Attached are 2 set of logs of two different users (KellerGeorg and FreiRuth). In the set of KellerGeorg the logs are empty, FreiRuth's set has an error in the log, which hopefully gives an indication of what's going on.

Regards,

jcompagner wrote:looks very weird to me if that update process has anything to do with that.
That is just a scheduler process that now and then checks if there is a new version

I think for many windows users that process is running, it is also for me right now.

Maybe you can find something in this kind of dir:

C:\Users\[username]\AppData\LocalLow\Sun\Java\Deployment\log

there you have various log files.
Attachments
20120119_FreiRuth.zip
(992 Bytes) Downloaded 304 times
20120119_KellerGeorg.zip
(1.85 KiB) Downloaded 295 times
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Windows machines: Could not create the Java virtual mach

Postby jcompagner » Thu Jan 19, 2012 12:05 pm

no in those files not much can be found, except the error about the jnlp that is missing from the cache.

So it seems to go wrong even before that, i think somehow the vm arguments are wrong, for example if i do this on the command line:

java -e
Unrecognized option: -e
Could not create the Java virtual machine.

then you also can stuff like that.

Can take a look at the server that is used? So that i can see the jnlp file they are downloading from the client?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Windows machines: Could not create the Java virtual mach

Postby tgs » Thu Jan 19, 2012 7:48 pm

Hi Robert,

could you fix the problem now?
If yes, it would be nice to know how you got it to work.

Regards
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: Windows machines: Could not create the Java virtual mach

Postby Robert Huber » Fri Jan 20, 2012 9:44 am

jcompagner wrote:Can take a look at the server that is used? So that i can see the jnlp file they are downloading from the client?


This sentence is not clear to me, what exactly would you like to have or should I do?
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Windows machines: Could not create the Java virtual mach

Postby Robert Huber » Fri Jan 20, 2012 10:05 am

Hi Thomas

No, it's not fixed but we are trying very hard to find the cause for this, because together with the still not solved startup error of the cached Java file (see thread viewtopic.php?f=11&t=1774), the installation is very unstable and we are living from day to day but can't roll out more machines.
Current state is that the problem is still only related to Windows machines (Windows 7).

I will of course let all know when we find the solution or cause of this.

Regards, Robert

tgs wrote:Hi Robert,

could you fix the problem now?
If yes, it would be nice to know how you got it to work.

Regards
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Windows machines: Could not create the Java virtual mach

Postby Yeroc » Fri Jan 20, 2012 9:50 pm

Robert,

In my experience (with other Java Web Start apps, not Servoy specifically) you typically get this error when the JVM is requesting more memory than the OS can provide. What are your servoy.initialClientHeap & servoy.maxClientHeap settings? How much RAM do these machines have? Are they running the 32bit or 64bit JVM? Try reducing your initialClientHeap and maxClientHeap settings if they're high.

Corey
Yeroc
 
Posts: 109
Joined: Tue Aug 12, 2008 1:12 am
Location: Calgary, AB, Canada

Re: Windows machines: Could not create the Java virtual mach

Postby Robert Huber » Tue Jan 24, 2012 1:38 pm

Corey

Thanks for your suggestion!

Yeroc wrote:Robert,

In my experience (with other Java Web Start apps, not Servoy specifically) you typically get this error when the JVM is requesting more memory than the OS can provide. What are your servoy.initialClientHeap & servoy.maxClientHeap settings? How much RAM do these machines have? Are they running the 32bit or 64bit JVM? Try reducing your initialClientHeap and maxClientHeap settings if they're high.

Corey


I use 256 and 1536 for servoy.initialClientHeap & servoy.maxClientHeap settings. What are you using? The machines have 4 GB of RAM, although Windows can only address 3 GB. We are running on Windows the 32bit JVM, because that's the default when downloading, no idea why there is not the 64bit version offered when having a 64bit OS.

Yeroc wrote:Robert,

Try reducing your initialClientHeap and maxClientHeap settings if they're high.

Corey


How much is high for you? And to what values should I reduce them?

Regards,
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Windows machines: Could not create the Java virtual mach

Postby Harjo » Tue Jan 24, 2012 2:07 pm

1536! :shock: wow, that's high,
We have a large solution, and the max for a client set to 512MB, never had any problems.
If you really need that much memory, you have to look, WHY you need that many, maybe you can do some performance / memory tuning....
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Windows machines: Could not create the Java virtual mach

Postby Robert Huber » Tue Jan 24, 2012 3:44 pm

Hello Harjo

May I ask the other way round .-) Why shouldn't I set a high memory value if there is enough memory? Memory is also cheap these days, and 512 MB is not that much any more.
But as you say I get also the impression that Windows/Java can may be these memory settings not handle that well, but I am not sure if that is really the problem. Have you any indication that more than 512 MB is a problem for Windows/Java?

Harjo wrote:1536! :shock: wow, that's high,
We have a large solution, and the max for a client set to 512MB, never had any problems.
If you really need that much memory, you have to look, WHY you need that many, maybe you can do some performance / memory tuning....


Regards,
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Re: Windows machines: Could not create the Java virtual mach

Postby Harjo » Tue Jan 24, 2012 4:26 pm

It's a wrong assumption, that Java 32 bit can allocate 3GB or 4GB of memory.
Java 32 bit can only allocate in TOTAL about 1700MB so you are very close to that number. A client does not need so much memory (application_server is an other story)
Maybe there are more java processes running on those machines? or someone opens the client two times??

So lower it to 512MB and monitor it for a few days...

So I ask the other way around, :wink: why did you set that value so high? because the default of Servoy is MUCH lower, so someone, did change that...
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Windows machines: Could not create the Java virtual mach

Postby Robert Huber » Tue Jan 24, 2012 4:39 pm

Hi Harjo

The someone was I ;-) So I have to feel guilty ... As we have quite some speed problems I wanted to make sure the client has enough memory, but as you say it may be a wrong decision. I try it with lower memory settings and see what happens.
Where can I read about such restrictions in Windows?

Harjo wrote:It's a wrong assumption, that Java 32 bit can allocate 3GB or 4GB of memory.
Java 32 bit can only allocate in TOTAL about 1700MB so you are very close to that number. A client does not need so much memory (application_server is an other story)
Maybe there are more java processes running on those machines? or someone opens the client two times??

So lower it to 512MB and monitor it for a few days...

So I ask the other way around, :wink: why did you set that value so high? because the default of Servoy is MUCH lower, so someone, did change that...


Thanks a lot and regards,
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests

cron