joost jar - OutOfMemory error

Hey experts,

 I am running the joost.jar (utility for transforming xml files to other xml files) on a large xml file (10.1 MB) as follows:

c:\j2sdk1.4.2_08\bin\java -cp c:\work\cmp\deployment\mappers\jars\joost.jar;C:\work\cmp\deployment\ecmp\tangoe-ecmp-app.jar net.sf.joost.Main "C:\Marwan\belgacom\NewStxTesting\der_invoice.xml" C:\Marwan\belgacom\NewStxTesting\belgacomediTCDFREE.stx > cdrfree_test.xml

In this belgacomediTCDFREE.stx file, I am just doing an identical tranformation (the output would be identical to the input - with just difference in newline positions), but it's giving an OutOfMemory Error at the end (while close to completion)...is there any option in which I can give more memory to a jar file that I want to run??
LVL 3
mte01Asked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
java -X

just lists the options. The other is to set the max heap size

java -Xmx1000Mb YourProg
0
 
CEHJCommented:
See your

java -Xmx<size>        set maximum Java heap size

setting

java -X
0
 
mte01Author Commented:
>>CEHJ

You comment is not clear...what's the difference between -Xmx & -X?? and which one needs a size argument & which one doesn't?
0
 
mte01Author Commented:
>>CEHJ

Ok..I see..thx for your help!
0
 
CEHJCommented:
:-)
0
All Courses

From novice to tech pro — start learning today.