Thread: Simple Memory Problem

Results 1 to 4 of 4
  1. #1 Simple Memory Problem 
    Registered Member Mini's Avatar
    Join Date
    Jul 2007
    Posts
    285
    Thanks given
    5
    Thanks received
    7
    Rep Power
    35
    I don't quite understand the problem I'm running into...

    The server ran fine from eclipse on my 512mb RAM laptop... When I switched to my 2gb RAM laptop to run the server off of... It claims it's out of memory at the line

    Code:
    cache = new byte[(int) worldmap.length()];
    How do I fix this? I haven't much experience with eclipse... I'm still getting there.
    Reply With Quote  
     

  2. #2  
    Registered Member White Wolf's Avatar
    Join Date
    Apr 2012
    Posts
    67
    Thanks given
    0
    Thanks received
    4
    Rep Power
    11
    Increase the JVM heap size using the -Xmx parameter in eclipse under "Run Configurations".

    [Only registered and activated users can see links. ]

    Whenever that comes up either you should revise your code or just allocate more memory if you're lazy. The latter is generally never better, however in certain cases either may need to be used depending on what it is you're trying to accomplish.

    Edit:
    I have provided a picture below. The part you are interested in is outlined in bold black. Change "1024" to the optimal value.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,764
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    If you're using the region clipping system this 'worldmap' is useless and a mem. Leak
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     

  4. #4  
    Registered Member Mini's Avatar
    Join Date
    Jul 2007
    Posts
    285
    Thanks given
    5
    Thanks received
    7
    Rep Power
    35
    My bad. I did that originally, however I put mb instead of "M" after the RAM allocated. :/


    Quote Originally Posted by 'Spike View Post
    If you're using the region clipping system this 'worldmap' is useless and a mem. Leak
    I'm not entirely sure what you mean. However, I'm just toying with No-Doze based on Shard...
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Major Memory Problem with 1 thread
    By Streax in forum Forum Related Help
    Replies: 9
    Last Post: 02-03-2012, 04:38 AM
  2. simple problem for u but not for me
    By arcane-scape in forum Help
    Replies: 2
    Last Post: 01-17-2012, 06:15 AM
  3. Memory problem...
    By myK- in forum Help
    Replies: 4
    Last Post: 02-09-2011, 03:10 AM
  4. Simple Problem
    By SilentZPrO in forum Help
    Replies: 5
    Last Post: 12-30-2010, 12:44 AM
  5. Sprite error... Memory problem :S
    By Cronicman1 in forum Help
    Replies: 14
    Last Post: 07-18-2010, 10:18 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •