Re: How do you set the memory size for FOP

2003-02-20 Thread J.Pietschmann
Patrick Dean Rusk wrote:
Not sure what it defaults to
if you don't specify a unit.
It is *bytes*. The specified amount is clipped to a certain minimum,
4MB or 8MB I think.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How do you set the memory size for FOP

2003-02-19 Thread Jon Steeves
Hello:

FOP bombs at about 150 pages with a java.lang.outofmemory error.  I 
gather that the solution is to adjust the size of the java vm using, say, 
-Xmx256m.  Unfortunately, I know absolutely nothing about using java, so I 
don't know where to do this.

I'm using windows NT and here's the batch file I use to run FOP:

cd c:\fop
java -cp  
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;li 
b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar  
org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf
pause


Can I increase the mem-size within this sequence of commands?  And if 
so, how would it look? 

Thanks

Jon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do you set the memory size for FOP

2003-02-19 Thread Roland Neilands
Jon,

Amywhere before the FOP call should work:

   Can I increase the mem-size within this sequence of 
 commands?  And if so, how would it look? 

 cd c:\fop
 java -cp  
 build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2
 .3.jar;li 
 b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar

-Xmx256m

   org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf
 pause

Cheers,
Roland

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do you set the memory size for FOP

2003-02-19 Thread Jon Steeves
Roland:

I had already tried this command:

java -cp -Xmx128  
build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;li 
b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar  
org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf

and it caused java to run out of memory before even a single page was 
processed.  (I ran it with my task manager performance screen displayed, so I 
know that there was more than 128 meg available, so I assumed I wasn't setting 
it properly.) 

Strangely enough, if I remove the -Xmx128, FOP processes 170 pages before 
running out of memory.  Does this mean that the default setting is  than 128?  
(I thought the java default was 64m).

Jon  

-Original Message-
From: Roland Neilands [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 1:06 PM
To: [EMAIL PROTECTED]
Subject: RE: How do you set the memory size for FOP


Jon,

Amywhere before the FOP call should work:

   Can I increase the mem-size within this sequence of 
 commands?  And if so, how would it look? 

 cd c:\fop
 java -cp  
 build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2
 .3.jar;li 
 b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar

-Xmx256m

   org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf
 pause

Cheers,
Roland

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do you set the memory size for FOP

2003-02-19 Thread Roland Neilands
Jon,

 java -cp -Xmx128  
   Try switching these two (-cp expects the path below as an argument.
 build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2
 .3.jar;li 
 b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
   org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf

Cheers,
Roland

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do you set the memory size for FOP

2003-02-19 Thread Patrick Dean Rusk
Try -Xms128m

The m at the end means megabytes, of course.  Not sure what it defaults to
if you don't specify a unit.

Pat


-Original Message-
From: Jon Steeves [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 5:33 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How do you set the memory size for FOP


Roland:

  Actually, java -Xmx128 -cp etc...  was the order of the arguments I
originally used -- and it was with this that FOP gave the out of memory
error even before it started generating pages.

Cheers

-Original Message-
From: Roland Neilands [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 2:26 PM
To: [EMAIL PROTECTED]
Subject: RE: How do you set the memory size for FOP


Jon,

 java -cp -Xmx128
   Try switching these two (-cp expects the path below as an argument.
 build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2
 .3.jar;li
 b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
   org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf

Cheers,
Roland

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do you set the memory size for FOP

2003-02-19 Thread Roland Neilands
 The m at the end means megabytes, of course.  Not sure what 
 it defaults to
 if you don't specify a unit.
Must be kb. (worked on a small doc.)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do you set the memory size for FOP

2003-02-19 Thread Jon Steeves
The missing m was the culprit.  I put it in and FOP churned out a 450 page 
document.

Thank you FOPlisters for all the help!

Jon

-Original Message-
From: Patrick Dean Rusk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 2:53 PM
To: [EMAIL PROTECTED]
Subject: RE: How do you set the memory size for FOP


Try -Xms128m

The m at the end means megabytes, of course.  Not sure what it defaults to
if you don't specify a unit.

Pat


-Original Message-
From: Jon Steeves [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 5:33 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How do you set the memory size for FOP


Roland:

  Actually, java -Xmx128 -cp etc...  was the order of the arguments I
originally used -- and it was with this that FOP gave the out of memory
error even before it started generating pages.

Cheers

-Original Message-
From: Roland Neilands [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 2:26 PM
To: [EMAIL PROTECTED]
Subject: RE: How do you set the memory size for FOP


Jon,

 java -cp -Xmx128
   Try switching these two (-cp expects the path below as an argument.
 build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2
 .3.jar;li
 b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
   org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf

Cheers,
Roland

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do you set the memory size for FOP

2003-02-19 Thread Savino, Matt C
450 pages is pretty good. Just curious did you use multiple page sequences? no 
large tables? Also do you see how much memory it did use?

thanks

 -Original Message-
 From: Jon Steeves [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 19, 2003 3:26 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: How do you set the memory size for FOP
 
 
 The missing m was the culprit.  I put it in and FOP churned 
 out a 450 page document.
 
 Thank you FOPlisters for all the help!
 
 Jon
 
 -Original Message-
 From: Patrick Dean Rusk [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 19, 2003 2:53 PM
 To: [EMAIL PROTECTED]
 Subject: RE: How do you set the memory size for FOP
 
 
 Try -Xms128m
 
 The m at the end means megabytes, of course.  Not sure what 
 it defaults to
 if you don't specify a unit.
 
 Pat
 
 
 -Original Message-
 From: Jon Steeves [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 19, 2003 5:33 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: How do you set the memory size for FOP
 
 
 Roland:
 
   Actually, java -Xmx128 -cp etc...  was the order of the arguments I
 originally used -- and it was with this that FOP gave the 
 out of memory
 error even before it started generating pages.
 
 Cheers
 
 -Original Message-
 From: Roland Neilands [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 19, 2003 2:26 PM
 To: [EMAIL PROTECTED]
 Subject: RE: How do you set the memory size for FOP
 
 
 Jon,
 
  java -cp -Xmx128
Try switching these two (-cp expects the path below as 
 an argument.
  build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2
  .3.jar;li
  b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar
org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf
 
 Cheers,
 Roland
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]