You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by villejck <vi...@yahoo.com> on 2007/05/09 20:58:09 UTC

Java -Xmx not working

I am attempting to process a large XML file that is greater than 2.5megs, but
I am getting a "Java Heap Space" error. I tried increasing my Java memory
allocation with the following command:

Java -Xms128m -Xmx256m

I tried different memory settings, but I notice from the task manager in
Windows that the memory used by FOP is still around 95,000K which seems to
be the default. The "Java -Xmx" command does not seem to be increasing the
memory allocation. I typed the Java command in ms-dos and inserted the
command into fop.bat, but there is no change in the memory allocation. The
Java memory is always capped at about 95,000K (95megs). Can anyone please
provide some input into this? Thank you!
-- 
View this message in context: http://www.nabble.com/Java--Xmx-not-working-tf3717663.html#a10400619
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: Java -Xmx not working

Posted by Chris Bowditch <bo...@hotmail.com>.
villejck wrote:
> I am attempting to process a large XML file that is greater than 2.5megs, but
> I am getting a "Java Heap Space" error. I tried increasing my Java memory
> allocation with the following command:
> 
> Java -Xms128m -Xmx256m
> 
> I tried different memory settings, but I notice from the task manager in
> Windows that the memory used by FOP is still around 95,000K which seems to
> be the default. The "Java -Xmx" command does not seem to be increasing the
> memory allocation. I typed the Java command in ms-dos and inserted the
> command into fop.bat, but there is no change in the memory allocation. The
> Java memory is always capped at about 95,000K (95megs). Can anyone please
> provide some input into this? Thank you!

You mention MS-DOS, so I guess you must using Windows. What version of 
Windows are you using and what JDK version? Also, what version of FOP 
are you using?

Thanks,

Chris





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


Re: Java -Xmx not working

Posted by villejck <vi...@yahoo.com>.
Thanks Chris for the response! Here are my specs:

Microsoft Vista & Windows Server 2003
JDK 6
FOP 0.93

Thanks,
Jack


cbowditch wrote:
> 
> villejck wrote:
>> I am attempting to process a large XML file that is greater than 2.5megs,
>> but
>> I am getting a "Java Heap Space" error. I tried increasing my Java memory
>> allocation with the following command:
>> 
>> Java -Xms128m -Xmx256m
>> 
>> I tried different memory settings, but I notice from the task manager in
>> Windows that the memory used by FOP is still around 95,000K which seems
>> to
>> be the default. The "Java -Xmx" command does not seem to be increasing
>> the
>> memory allocation. I typed the Java command in ms-dos and inserted the
>> command into fop.bat, but there is no change in the memory allocation.
>> The
>> Java memory is always capped at about 95,000K (95megs). Can anyone please
>> provide some input into this? Thank you!
> 
> You mention MS-DOS, so I guess you must using Windows. What version of 
> Windows are you using and what JDK version? Also, what version of FOP 
> are you using?
> 
> Thanks,
> 
> Chris
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Java--Xmx-not-working-tf3717663.html#a10417369
Sent from the FOP - Users mailing list archive at Nabble.com.


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