Thread: Cannot run server

Results 1 to 3 of 3
  1. #1 Cannot run server 
    Registered Member

    Join Date
    Nov 2010
    Posts
    1,528
    Thanks given
    1,017
    Thanks received
    348
    Rep Power
    240
    Hi

    I've been away from RSPS for a while, just chanced upon my old source from a USB I found at the bottom of my draw.

    Long story short, why does this happen when I open run.bat :

    "Error occurred during initialization of VM
    Could not reserve enough space for 819200KB object heap
    Press any key to continue . . ."
    This is a PI server, this is the code inside the run.bat file:

    Code:
    @echo off
    title Project MW
    "C:\Program Files (x86)\Java\jdk1.8.0_11\bin\java.exe" -Xmx800m -cp bin;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server
    pause
    I never had this problem before and had ran this same source before fine
    None.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2015
    Posts
    35
    Thanks given
    3
    Thanks received
    6
    Rep Power
    12
    Your -Xmx800m is causing the issues.

    Here's a few different options you can replace it with:
    Code:
    -Xmx1024m
    -Xmx512m
    -Xmx256m
    These are used to allocate memory to the heap. The error you're getting is saying it's unable to due to not enough memory. So I recommend trying the 512m or 256m option, see if they work. 512m is 512MB and 256m is 256MB. If you want to try later, see if 1024m works too, if not just revert back to the one that worked.

    Let me know how it goes.
    Latest Project
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Nov 2010
    Posts
    1,528
    Thanks given
    1,017
    Thanks received
    348
    Rep Power
    240
    Thanks tried 512mb works fine
    None.
    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. Cannot run server?
    By Bovril in forum Help
    Replies: 2
    Last Post: 06-17-2014, 11:37 AM
  2. cannot run my server/error
    By multimich in forum Help
    Replies: 1
    Last Post: 05-01-2014, 12:47 PM
  3. [SOLVED]Cannot run server Need help please
    By nudiustertian in forum Help
    Replies: 8
    Last Post: 01-09-2013, 09:25 PM
  4. Cannot run a server?
    By harraj128 in forum Help
    Replies: 8
    Last Post: 06-24-2012, 03:23 PM
  5. Need help, Cannot run server!
    By Sweet Tea in forum Help
    Replies: 2
    Last Post: 06-06-2011, 08:31 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
  •