mte01
asked on
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\map pers\jars\ joost.jar; C:\work\cm p\deployme nt\ecmp\ta ngoe-ecmp- app.jar net.sf.joost.Main "C:\Marwan\belgacom\NewStx Testing\de r_invoice. xml" C:\Marwan\belgacom\NewStxT esting\bel gacomediTC DFREE.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??
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\map
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??
ASKER
>>CEHJ
You comment is not clear...what's the difference between -Xmx & -X?? and which one needs a size argument & which one doesn't?
You comment is not clear...what's the difference between -Xmx & -X?? and which one needs a size argument & which one doesn't?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>CEHJ
Ok..I see..thx for your help!
Ok..I see..thx for your help!
:-)
java -Xmx<size> set maximum Java heap size
setting
java -X