Results 1 to 7 of 7
Thread: what is Out of memory expetion ?
- 09-11-2013, 06:49 PM #1
Member
- Join Date
- Sep 2013
- Posts
- 2
- Rep Power
- 0
- 09-11-2013, 06:54 PM #2
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 10
Re: what is Out of memory expetion ?
It happens when Java runs out of heap space. That may commonly happen when you:
- keep references to objects and never allow them to be garbage collections; this is as close to a memory leak as you can get in a Java program
- try to load a gigantic pile of data into memory, for example one or multiple huge images
How to resolve depends completely on the code that is causing it."Syntactic sugar causes cancer of the semicolon." -- Alan Perlis
- 09-13-2013, 09:24 AM #3
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,571
- Rep Power
- 12
Re: what is Out of memory expetion ?
That exception is also used for other things. What comes after the ":" in that excecption message?
It could be heap space, it could be permgen space, it could be too many open file descriptors, it could be too many native threads, and, I believe another couple of things. IOW, the exception is CALLED "OutOfMemory" but what it REALLY is, is "OutOfSystemResource".
- 09-13-2013, 09:32 AM #4
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 10
Re: what is Out of memory expetion ?
Ha, just call it "OutOfSomething" :)
I think it can also commonly happen when the swap is full on *nix environments."Syntactic sugar causes cancer of the semicolon." -- Alan Perlis
- 10-27-2013, 10:16 AM #5
Member
- Join Date
- Oct 2013
- Posts
- 1
- Rep Power
- 0
Re: what is Out of memory expetion ?
Hi,
For Java Interview Question Bank, you visit:Last edited by Tolls; 10-28-2013 at 11:30 AM. Reason: Removed link
- 10-28-2013, 11:30 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 25
Re: what is Out of memory expetion ?
Please don't advertise your own site here.
Please do not ask for code as refusal often offends.
** This space for rent **
- 11-06-2013, 11:30 AM #7
Member
- Join Date
- Oct 2013
- Posts
- 11
- Rep Power
- 0
Similar Threads
-
Java total memory and memory usage increase when using mysql function?
By newbie14 in forum Advanced JavaReplies: 2Last Post: 08-20-2012, 06:38 PM -
what are the memory profiling tools available that can help me detect memory leak?
By guest_user in forum New To JavaReplies: 1Last Post: 07-18-2011, 04:24 PM -
how do I increase memory allocated to code cache (Non Heap Memory)
By manibhat in forum Advanced JavaReplies: 2Last Post: 08-21-2008, 07:33 PM -
Out of memory
By mew in forum New To JavaReplies: 1Last Post: 01-20-2008, 08:55 AM
Bookmarks