Link to home
Start Free TrialLog in
Avatar of mte01
mte01Flag for Lebanon

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\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??
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

See your

java -Xmx<size>        set maximum Java heap size

setting

java -X
Avatar of mte01

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?
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mte01

ASKER

>>CEHJ

Ok..I see..thx for your help!
:-)