Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » java heap | Out of memory | jobs api
java heap | Out of memory | jobs api [message #330514] Wed, 30 July 2008 18:57 Go to next message
Eclipse UserFriend
Originally posted by: prasad.chand.gmail.com

Hi all,


I am facing a problem running a background job (using the jobs api). The
code in the job's run method accesses code to which I don't have source
access (They are corba-related class files included in a jar file).
Problem is in one of the methods I am getting a "java heap - out of
memory" error. I decompiled the classes using jad and I found that the
error occurs at the following spot

ResultDocument resultdocument = new ResultDocument();
resultdocument.szBreakPoint = inputstream.read_string();
err-> resultdocument.szOutputDocument = inputstream.read_string();
return resultdocument;

These class files are not generic but is there any specific reason why
we get an out of memory error in jobs api. what are the possible fixes?

Any help will be greatly appreciated.

Thanks,
Prasad
Re: java heap | Out of memory | jobs api [message #330764 is a reply to message #330514] Tue, 12 August 2008 16:13 Go to previous message
Eclipse UserFriend
Originally posted by: eclipseng.arthorne.com

There is nothing inherent about jobs that consume a large amount of
memory. They spawn a threads, which consume heap space, but the likely
cause is that you have several memory-intensive things going on
concurrently, which is using up all the memory. If you are doing a large
number of concurrent jobs you may want to reduce the number of jobs you
schedule at once. Otherwise, you can also increase the Java heap using
arguments such as -Xmx to the VM.
--


Prasad Chand wrote:
> Hi all,
>
>
> I am facing a problem running a background job (using the jobs api). The
> code in the job's run method accesses code to which I don't have source
> access (They are corba-related class files included in a jar file).
> Problem is in one of the methods I am getting a "java heap - out of
> memory" error. I decompiled the classes using jad and I found that the
> error occurs at the following spot
>
> ResultDocument resultdocument = new ResultDocument();
> resultdocument.szBreakPoint = inputstream.read_string();
> err-> resultdocument.szOutputDocument = inputstream.read_string();
> return resultdocument;
>
> These class files are not generic but is there any specific reason why
> we get an out of memory error in jobs api. what are the possible fixes?
>
> Any help will be greatly appreciated.
>
> Thanks,
> Prasad
Previous Topic:Problems while running Eclipse 3.3.2 on Ubuntu 8.04
Next Topic:[Databinding] Without PropertyChangeListener
Goto Forum:
  


Current Time: Fri Aug 30 00:43:13 GMT 2024

Powered by FUDForum. Page generated in 0.03570 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top