Hi,
When i m trying to navigate through in my application i m getting this exception"java.lang.OutOfMemoryError: Java heap space+Java"..
When i did some analysis on this i got its something i want to pass the size as argument.can anyone help on it..............

Thanks in Advance,
Mani:)

06-26-2008, 08:53 AM

Eranga

What type of application you tested. Is it given an error on a simple application too, like print 'Hello World'

06-26-2008, 09:28 AM

Niveditha

I think u have created so many objects that jvm has no memory to store anything else.

And remeber one thing no one here is waiting here with readymade answers to help u out, they are just sharing their knowledge with u. :rolleyes:

Before writing anything read all the posts and then reply ok...
Being rude or short-tempered is not going to help u out in IT industry. :)

06-27-2008, 04:29 AM

Eranga

Well said Niveditha, as you said no one here to write code here for others. I don't think any one wants to do it. Sometimes we give code, because we can see he/she make an attempt and failed to get the correct way.

And also, don't be hurry. Please read the post carefully before commenting any.

Keep in mind, because of such behaviors can be in 'not to replay' list for many members. It's not good my friends.

06-27-2008, 07:15 AM

Niveditha

Thank you Eranga :)
And i am sorry mani if i was bit rude...

06-27-2008, 07:18 AM

Eranga

No not at all. All these well let because as you said a forum is a place where we can share our knowledge. You tried point out that to all, that's it.

06-27-2008, 08:52 AM

itmani2020

Hey niveditha ,

i understood what eranga replied............
but for simple application its not occuring......this will happen only when i m trying to load heavy the data..............

sorry if i hurted someone.
My intension here is not to hurt members.just to help and get rid of that bug.............anyway sorry once more.

06-27-2008, 09:04 AM

Eranga

No one hurt on anyone itmani. :)

We always advice in good ways, that's it. So don't worry.

Before giving any comments best thing is start from the simple step. That's why ask that simple application and so on. As you said IDE not hurt you on a simple application. That means your real application has a problem.

Since it's a DB related application, lots of reasons can be cause. Mainly the way you handle connects, data sets and so on.

Why we advice such things, just increase the heap size not always best. When you increase the heap size it cause to your whole system(PC).

Check on IDE options, there may be some options to change those values. There should minimum as well as maximum values. I can't say exactly how it done, because I never work on Eclipse.

06-27-2008, 11:13 AM

itmani2020

ya eranga....
after some depth search at google....they mentioned if we run the eclipsce from cmd prompt we r able to give attribute.......i m trying to debugg that issue.....i think i m in right path............

Cheers,
Mani

06-27-2008, 11:15 AM

Eranga

Yep, it's better. Try and see. If I have time, refer some on Google and let you know.

07-24-2008, 08:36 AM

sheena06

lesson not only for java related but also how to deal with others.. well, that's good everyone.. :)

07-24-2008, 11:28 AM

skaspersen

Are you using JDBC?
If this is the case the problem is probably that you are not closing statements and resultsets when you are done with them.

The mysql driver uses native code and allocates memory that is not in control of the garbage collector. This memory will only be freed when you call Statement.close(),PreparedStatement.close(), and ResultSet.close().