Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reset, empty, clean java heap space

875301Jul 13 2011 — edited Mar 9 2012
Hello!

I am actually not a Java user but an R (statistical programming language) user. I use an R package which writes output
to Excel sheets. The package uses Java to link between R and Excel. When we used the package to write our data to Excel
R recently started to throw errors which after doing several tests we traced back to the java heap space.

Our question is now whether it is possible to clear/empty/reset the java heap space using java on the command line or by
starting an external programme? It is possible to start external programmes within R. So in case it would be possible to
clean up the java heap space we basically could write a little script which we could start from R to fix our problem.

Any help is very much appreciated.

Best,
Jo
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2012
Added on Jul 13 2011
10 comments
11,457 views