Re: outOfMemory error
Greg Trasuk <[email protected]> Wed, 6 Sep 2006 19:58:59 -0400
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <1157587139.15780.4.camel@cameron> |
Hi Steve:
If you're running the client from the command line, you can do:
java -Xmx512m com.yourcom.yourclass
or something like that, where the '512m' stands for 512 MBytes of
heap. If you're using a launcher it probably has its own config file.
Greg.
On Wed, 2006-09-06 at 19:39, steve kirby wrote:
> Hi,
>
> I am putting a dataset into a java space. The dataset is fairly
> hefty - I had to split it first in order to make each piece a size
> that it would allow me to write it to the java space.
>
> On a client, I have notify running, so when it sees this type of
> dataset arrive into the space, it does a take and then unmarshals the
> byte[] array portion of the entry and writes the data to a file.
>
> Works fine for the smaller 1-d, 2-d datasets I've done. But for the
> larger 3d dataset, I'm getting:
>
> =========================================
> Partial unmarshalling failure
> arry field could not be unmarshalled because of:
> java.lang.OutOfMemoryError: Java heap space
> =========================================
>
> So, this may be a Unix question more than anything else, i.e., how do
> I up my heap space, assuming it isn't already maxed out?
>
> TIA,
> Steve
>
>
> ______________________________________________________________________
> Get your email and more, right on the new Yahoo.com
> =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff JAVASPACES-USERS". For general help, send email to [email protected] and include in the body of the message "help".
>
> To view past JAVASPACES-USERS postings, please see:
> http://archives.java.sun.com/archives/javaspaces-users.html
--
Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.com
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS". For general help, send email to
[email protected] and include in the body of the message "help".
To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html