Neužtenka ramu wtf?

    
  1. Atsijungęs

    retejas

    Pranešimai: 0

    Error'as :
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    


    Gameserverloop.sh :
    #!/bin/bash
    
    DBHOST=localhost
    USER=root
    PASS=
    DBNAME=l2jdb
    
    err=1
    until [ $err == 0 ];
    do
            #mysqlcheck -h $DBHOST -u $USER --password=$PASS -s -r $DBNAME>>"log/`date +%Y-%m-%d_%H:%M:%S`-sql_check.log"
            #mysqldump -h $DBHOST -u $USER --password=$PASS $DBNAME|zip "backup/`date +%Y-%m-%d_%H:%M:%S`-l2jdb_gameserver.zip" -
            [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
            [ -f log/stdout.log ] &&  mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
            [ -f log/chat.log ] && mv log/chat.log "log/`date +%Y-%m-%d_%H:%M:%S`-chat.log"
            java -Dfile.encoding=UTF- -Xms2g -Xmx5g -Xmn1536m -Xss1536m -XX:PermSize=256m -XX:MaxPermSize=768m -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10 -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:gc.txt -cp lib/*:l2jfrozen-core.jar com.l2jfrozen.gameserver.GameServer > log/stdout.log 2>&1
            err=$?
            sleep 10
    done
    


    Ramai :
     	RAM sąnaudos:	
     920/3584 MB (26%)


    Ir kodėl nepaleidžia vietos turi užtekti taigi.
    Paskutinį kartą redagavo: retejas 8 Vasario 2016 - 13:38
    8 Vasario 2016 - 13:37 / #1
  2. 
  3. Atsijungęs

    Grax

    Pranešimai: 0

    Xms2g -Xmx5g
    2g - 2GB
    5g - 5GB
    8 Vasario 2016 - 16:24 / #2
  4. 
  5. Atsijungęs

    retejas

    Pranešimai: 0

    va kame bėda...
    8 Vasario 2016 - 16:40 / #3
  6. 
  7. Atsijungęs

    retejas

    Pranešimai: 0

    Kažko nesigauna nesuprantu kiek ramu reikia skirti kad viskas pasileistu galetu kas pvz numesti kiek jus metat? Ar aš kažką blogai konfiguruoju?
    Error'as :
    Error occurred during initialization of VM
    Too small initial heap for new size specified

    Gameserver loopas :

    java -Dfile.encoding=UTF- -Xms1g -Xmx2g -Xmn1024m -Xss2048k -XX:PermSize=1024m -XX:MaxPermSize=2048m -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10 -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:gc.txt -cp lib/*:l2jfrozen-core.jar com.l2jfrozen.gameserver.GameServer > log/stdout.log 2>&1


    Pakelus ramus 2g iki 4g ir padidinau ramu kieki serverinei iki 6gb meta toki error'a :
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    Paskutinį kartą redagavo: retejas 8 Vasario 2016 - 17:07
    8 Vasario 2016 - 16:59 / #4
  8. 
  9. Atsijungęs

    Grax

    Pranešimai: 0

    pakeisk ta 1g i 512 ir 2g 2048
    8 Vasario 2016 - 17:57 / #5
  10. 
  11. Atsijungęs

    retejas

    Pranešimai: 0

    R.I.P.
    Error occurred during initialization of VM
    Too small initial heap for new size specified
    
    8 Vasario 2016 - 18:17 / #6
  12. 
  13. Atsijungęs

    wewewe

    Pavadinimas: L2 žaidėjas

    Narys

    Pranešimai: 727

    Vartotojo apdovanojimai: 16

    parodyk ka prikeverzojai ten
    8 Vasario 2016 - 21:26 / #7
  14. 
  15. Atsijungęs

    retejas

    Pranešimai: 0

    wewewe,
    Nesityčiok iš manęs.. Mano laikais kai kurdavau budavo vienas parametras ir buvo yzi :D

    #!/bin/bash
    
    DBHOST=localhost
    USER=root
    PASS=
    DBNAME=l2jdb
    
    err=1
    until [ $err == 0 ];
    do
            #mysqlcheck -h $DBHOST -u $USER --password=$PASS -s -r $DBNAME>>"log/`date +%Y-%m-%d_%H:%M:%S`-sql_check.log"
            #mysqldump -h $DBHOST -u $USER --password=$PASS $DBNAME|zip "backup/`date +%Y-%m-%d_%H:%M:%S`-l2jdb_gameserver.zip" -
            [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
            [ -f log/stdout.log ] &&  mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
            [ -f log/chat.log ] && mv log/chat.log "log/`date +%Y-%m-%d_%H:%M:%S`-chat.log"
            java -Dfile.encoding=UTF- -Xms512 -Xmx2048 -Xmn1024m -Xss2048k -XX:PermSize=1024m -XX:MaxPermSize=2048m -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10 -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:gc.txt -cp lib/*:l2jfrozen-core.jar com.l2jfrozen.gameserver.GameServer > log/stdout.log 2>&1
            err=$?
            sleep 10
    done
    
    8 Vasario 2016 - 21:35 / #8
  16. 
  17. Atsijungęs

    wewewe

    Pavadinimas: L2 žaidėjas

    Narys

    Pranešimai: 727

    Vartotojo apdovanojimai: 16

    -Xms512 -Xmx2048
    Ko 512? Ko 2048? Jei vienetai nenurodyti, JVM assumina baitus.
    8 Vasario 2016 - 22:25 / #9
  18. 
  19. Atsijungęs

    retejas

    Pranešimai: 0

    kad ir buvo su m vistiek neveikė
    8 Vasario 2016 - 22:38 / #10