Re: [xep-support] Out of memory error?

From: Chris Ridd <chrisridd@mac.com>
Date: Mon May 01 2006 - 10:18:17 PDT

On 1/5/06 6:04, Steve Ylvisaker <sylvisaker@CHYconsultants.com> wrote:

> Thanks Chris - I figured it was something like that. I guess I need to
> figure out how to run from the command line. I have tried using the .bat
> file that is provided with the tool. I am running the following as a
> .bat file without success:
>
> c:\xslt\xep.bat -fo c:\xslt\fo\out20.fo -out c:\xslt\fo\renderout.ps -ps
>
> I couldn't find any examples in the documentation - web site or
> reference manual - that were complete and explained exactly what to
> specify. I'm not much of a command line persona any more. So... If you
> have an example that you would be willing to share I sure would
> appreciate it. I am giving the formatter an XSL-FO file and I want the
> output in PostScript format. It would be great if you could show me
> where to put the -Xmx parameter. My machine has 512 mg of ram.
>
> When I run the bat file there are error messages that flash in the
> window for a fraction of a second but I can't read them. Is there a way
> to send the diagnostic output to a file instead of to the screen?

I'm using the Unix "xep" shell script and not the Windows batch file, but
presumably they work in a similar way.

First, I edited my xep script, adding the -Xmx[...] line below:

---
"$JAVA_HOME/bin/java" \
        -classpath "$CP" \
        -Xmx150000000 \
        "-Dcom.renderx.xep.CONFIG=$XEP_HOME/xep.xml" \
        com.renderx.xep.XSLDriver "$@"
---
Obviously the next time I upgrade XEP I'll need to recustomize the script
:-(
I then call xep like this:
    xep -quiet -fo source.fo -pdf result.pdf
The -quiet shuts xep up a bit. Errors still get displayed.
I don't know how you'd make Java write errors to a file. Presumably you're
running it all interactively from a "Windows Command Prompt"? If you are,
you should just be able to scroll back to see all the errors.
Cheers,
Chris
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Mon May 1 10:48:35 2006

This archive was generated by hypermail 2.1.8 : Mon May 01 2006 - 10:48:36 PDT