aspose file tools*
The moose likes Java in General and the fly likes java.lang.OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.lang.OutOfMemoryError" Watch "java.lang.OutOfMemoryError" New topic
Author

java.lang.OutOfMemoryError

Karthik Krishnamurthy
Ranch Hand

Joined: Feb 04, 2005
Posts: 118
Hi,

When I run my code using "java Decoder" I am getting java.lang.OutOfMemoryError

So I ran it with the following parameters:

java -Xms=32m -Xmx=1024m Decoder.

Now it is giving "invalid initial heap size. Could not create JVM" error.
(and if i remove the -Xms i am getting "invalid max heap size. Could not create JVM".)

Could any one pl help.

Thx
Karthik
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Remove the equals sign and try


Mani
Quaerendo Invenietis
Karthik Krishnamurthy
Ranch Hand

Joined: Feb 04, 2005
Posts: 118
Thanks a lot Mani. That worked
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"kkarthik",
please see the request to change your display name here.

We require display names to be two words: your first name, a space, then your last name. Fictitious names are not allowed.

More information is available in the link provided.

thanks,
Dave
Karthik Krishnamurthy
Ranch Hand

Joined: Feb 04, 2005
Posts: 118
Hi,

The request was to change my display name from strutsfanatic.

Anyway I have changed my display name to my full name.

Thx
Karthik
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

kkarthik was still not valid, but that's old news now. I appreciate you changing it so quickly!

Dave
 
Consider Paul's rocket mass heater.
 
subject: java.lang.OutOfMemoryError