Error occurred during initialization of VM

2009-04-02 Thread bonekrusher

Hi All, 

This question is probably Java issue, but I want to run by this list first.
I am running FOP 0.025 on 2 machines. Because the XML files are very large I
set the heap size to Xmx1056mb. On one machine it works and another I get
this error:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Machine 1 (works) stats:
Intel Duel Core CPU @2.10GHz/2.07 GHz
2.99 GB Ram
Java 1.6.0_11
jdk 1.6.0_11

Machine 2 (doesnt work) Stats:
Pentium Dual CPU E2180 @ 2.00 GHz
2.00 GHz, 3.24 GB of RAM 
Java 1.6.0_11

As you can see I have enough memory in both machines. The only difference is
Machine 1 has the JDK. Could this be the issue or its a configuration issue. 

Any suggestions?

Thanks,

-- 
View this message in context: 
http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22849015.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread Sam Fuqua
Is there any reason why you're using .025?  The latest release is 0.95.
Also, can you give a bit more detail of how you're using it?  Is it
stand-alone?  Are you using your own scripts?  Is it a servlet?  What's your
platform?

On Thu, Apr 2, 2009 at 10:19 AM, bonekrusher djs...@yahoo.com wrote:


 Hi All,

 This question is probably Java issue, but I want to run by this list first.
 I am running FOP 0.025 on 2 machines. Because the XML files are very large
 I
 set the heap size to Xmx1056mb. On one machine it works and another I get
 this error:

 Error occurred during initialization of VM
 Could not reserve enough space for object heap
 Could not create the Java virtual machine.

 Machine 1 (works) stats:
 Intel Duel Core CPU @2.10GHz/2.07 GHz
 2.99 GB Ram
 Java 1.6.0_11
 jdk 1.6.0_11

 Machine 2 (doesnt work) Stats:
 Pentium Dual CPU E2180 @ 2.00 GHz
 2.00 GHz, 3.24 GB of RAM
 Java 1.6.0_11

 As you can see I have enough memory in both machines. The only difference
 is
 Machine 1 has the JDK. Could this be the issue or its a configuration
 issue.

 Any suggestions?

 Thanks,

 --
 View this message in context:
 http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22849015.html
 Sent from the FOP - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




-- 
Sam Fuqua
ΣΝ ΘΗ 454


Re: Error occurred during initialization of VM

2009-04-02 Thread Andreas Delmelle

On 02 Apr 2009, at 16:19, bonekrusher wrote:

Hi Phil


snip /
Machine 2 (doesnt work) Stats:
Pentium Dual CPU E2180 @ 2.00 GHz
2.00 GHz, 3.24 GB of RAM
Java 1.6.0_11

As you can see I have enough memory in both machines. The only  
difference is
Machine 1 has the JDK. Could this be the issue or its a  
configuration issue.


Not really sure, but the stats above (most likely) only reflect the  
amount of physical RAM available. Any other processes running on that  
machine that could be eating part of that 3.84GB?
IOW: Can you check whether there is enough *free* memory at JVM  
startup time?



Regards

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread bonekrusher

Thanks... I am running from the command line. We are in the process of
upgrading to 95 - in the mean time I have 18 tech writers using 0.025 - 

Andreas, How can I check whether there is enough *free* memory at JVM
startup time?

Thanks,
 
-- 
View this message in context: 
http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22854270.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread bonekrusher

Thanks - I am running windows - The problem is that Java doenst even start -
so i cant see what is happening in task manager



Andreas Delmelle-2 wrote:
 
 On 02 Apr 2009, at 20:29, bonekrusher wrote:
 
 Hi Phil
 
 Andreas, How can I check whether there is enough *free* memory at JVM
 startup time?
 
 That depends on the OS. If it is Windows, then checking the Task  
 Manager could already give a clue. On Mac OS X, the tool would be the  
 Activity Monitor. Not sure what the equivalent is for Linux, Solaris,  
 etc.
 
 
 Cheers
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22854740.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread Andreas Delmelle

On 02 Apr 2009, at 21:03, Andreas Delmelle wrote:


On 02 Apr 2009, at 20:54, bonekrusher wrote:



Thanks - I am running windows - The problem is that Java doenst  
even start -

so i cant see what is happening in task manager



Oh, what I meant was: see if you have enough memory to begin with.  
Is there 1056MB free RAM available, or are you perhaps already using  
80% before Java is even started? If yes, then that would explain why  
java.exe cannot allocate enough memory for the heap.


Just thought of another possibility: in server environments, the RAM  
on one single machine is typically shared by different users. Maybe a  
policy is enabled on that particular machine that would place  
restrictions on the amount of memory that can be used by one account  
at any given time?


I'm suddenly realizing that my earlier remark is not correct. It would  
only cause a lot of swapping, but should not lead to JVM  
initialization errors, IIC...


Regards

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread bonekrusher

Try running with decreased -Xmx settings. If lower values do work,  
then that would seem to point to memory restrictions imposed by the  
OS...  - thats it - Because If I lower the memory settings on Xmx I get
a Heap Error with large files.

Thanks - you're the best

Phil


Andreas Delmelle-2 wrote:
 
 On 02 Apr 2009, at 21:27, bonekrusher wrote:
 

 Ok, see attached.

 http://www.nabble.com/file/p22855298/Windows%2BTask%2BManager.png
 
 OK, that should be no problem whatsoever, unless (see my follow-up  
 mail).
 
 Try running with decreased -Xmx settings. If lower values do work,  
 then that would seem to point to memory restrictions imposed by the  
 OS...
 
 
 Regards
 
 Andreas
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22855636.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org