Results 1 to 5 of 5
Thread: Problem JAVA HEAP SPACE !!
- 04-29-2011, 10:50 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 18
- Rep Power
- 0
- 04-30-2011, 12:04 AM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Possibly, It's a logic error more than likely, you must have some sort of infinite loop/recursive process being performed. It's hard to say without seeing some code.
Highlight your code and click the code button, or click the code button and then paste your code between them.
Also, is anyone else having trouble displaying code tags with ascii? When I do [/code](using ascii & #101; ) in the opening and closing tags it creates actual tags.Last edited by sunde887; 04-30-2011 at 12:07 AM.
- 04-30-2011, 01:43 AM #3
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,604
- Rep Power
- 5
Indeed hard to say if this is a programming error, or an error with simply running out of room while trying to allocated lots of memory. Change the maximum memory for the JRE using the -Xmx parameter (for example, set the max memory to 512mb by using -Xmx512m)
- 05-01-2011, 06:52 PM #4
Member
- Join Date
- Apr 2011
- Posts
- 18
- Rep Power
- 0
I try to put some values in the direct addressing table.Java Code:static int ArrMyarray[] = new int[188116185]; public void searchInDirectAddressTable(String input) { int position = ConvertToInt(input); if (ArrMyarray[position] !=0) { System.out.println("Found at position " + position); } else { System.out.println("Not found"); } }
- 05-01-2011, 07:12 PM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,383
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Image Problem overflowing Heap Space
By The Bear Jew in forum Java 2DReplies: 4Last Post: 10-16-2010, 06:58 PM -
large number of DB writes: java heap space problem in using transaction-commit
By narimani in forum JDBCReplies: 0Last Post: 06-28-2010, 12:30 PM -
Heap Space Problem
By segolas in forum Advanced JavaReplies: 6Last Post: 01-14-2010, 11:29 AM -
Problem with Java Heap Space using Socket
By mvillara in forum NetworkingReplies: 3Last Post: 08-21-2009, 04:45 AM -
Java heap space?
By javanewbie in forum New To JavaReplies: 1Last Post: 06-24-2008, 06:55 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks