Thread: Out of memory error

Results 1 to 6 of 6
  1. #1 Out of memory error 
    Motivation is your best friend
    geordie's Avatar
    Join Date
    Nov 2008
    Posts
    750
    Thanks given
    3
    Thanks received
    19
    Rep Power
    0
    Am i right in thinking the vps i have ordered hasn't got enough memory to run the server as it works perfectly on my computer when running but when i try and run on the vps it gets to loading map:

    Then comes up with this:

    INFO: Loading map...
    Exception in thread "ServerEngine" java.lang.OutOfMemoryError: Java heap space
    at com.rs2.cache.map.LandscapeParser.parse(LandscapeP arser.java:92)
    at com.rs2.cache.object.ObjectLoader.load(ObjectLoade r.java:60)
    at com.rs2.Server.run(Server.java:170)
    at java.lang.Thread.run(Unknown Source)


    Everything is the exact same as it is run on my computer, has anyone come across this before? And found a fix?

    It's runesource.
    Reply With Quote  
     

  2. #2  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Xmx512m
    change that to anything lower, assuming you have a run batch file, this represents the amount of Physical memory used
    Reply With Quote  
     

  3. #3  
    Motivation is your best friend
    geordie's Avatar
    Join Date
    Nov 2008
    Posts
    750
    Thanks given
    3
    Thanks received
    19
    Rep Power
    0
    No such thing in my run.bat. I can use run.bat and eclipse.
    Reply With Quote  
     

  4. #4  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    Use -Xms to set the standard allocated memory (like: -Xms200m).
    Use -Xmx to set the maximum allocated memory (like -Xmx400m).

    The maximum must be greater than the standard and the standard cannot be too low (the "too low threshold" is dependent on your program).
    Reply With Quote  
     

  5. #5  
    Motivation is your best friend
    geordie's Avatar
    Join Date
    Nov 2008
    Posts
    750
    Thanks given
    3
    Thanks received
    19
    Rep Power
    0
    They are located in workspace.xml if i'm correct?
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Feb 2013
    Posts
    177
    Thanks given
    16
    Thanks received
    15
    Rep Power
    0
    This would be to do with your run.bat it looks like your running out of ram or haven't assigned enough ram.

    Paste your run.bat

    Regards,
    Smoke
    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. Out of memory error. (Easy rep)
    By pyrofox69 in forum Help
    Replies: 0
    Last Post: 12-29-2010, 06:03 AM
  2. Replies: 14
    Last Post: 12-23-2010, 11:16 AM
  3. out of memory error
    By Wizard ebodA in forum Help
    Replies: 12
    Last Post: 12-21-2010, 12:56 AM
  4. Out Of Memory Error?
    By Gluon in forum Help
    Replies: 4
    Last Post: 06-26-2009, 01:11 AM
  5. Out of Memory Error
    By 35518 in forum Help
    Replies: 2
    Last Post: 03-27-2009, 01:17 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •