Jump to content

Question

Posted

@echo off
@color 0A
title L2NextGen GameServer
:start
echo %DATE% %TIME% Game server is running !!! > gameserver_is_running.tmp
echo Starting L2NextGen Game Server.
echo.
REM set PATH="type here your path to java jdk/jre (including bin folder)"
REM Default parameters for a basic server.

REM ======== Optimize memory settings =======
REM Minimal size with geodata is 1.5G, w/o geo 1G
REM Make sure -Xmn value is always 1/4 the size of -Xms and -Xmx.
REM -Xms<size>	set initial Java heap size
REM -Xmx<size>	set maximum Java heap size
REM -Xmn<size>	Size of young generation
REM ===============================
REM Set heap min/max to same size for consistent results
REM одинаковый размер памяти для Xms и Xmx, JVM пытается удержать размер heap'а минимальным, и если его нужно меньше, чем в Xmx - гоняет GC понапрасну
SET java_opts=%java_opts% -Xms4096m
SET java_opts=%java_opts% -Xmx4096m

REM Non Heap memory
SET java_opts=%java_opts% -XX:PermSize=512m
REM Maximum size of the permanent generation.
SET java_opts=%java_opts% -XX:MaxPermSize=640m

REM Garbage collector/Performance Options
SET java_opts=%java_opts% -XX:+UseConcMarkSweepGC
SET java_opts=%java_opts% -XX:+UseParNewGC
SET java_opts=%java_opts% -XX:+CMSIncrementalMode
SET java_opts=%java_opts% -XX:MaxGCPauseMillis=500
SET java_opts=%java_opts% -XX:+DoEscapeAnalysis
SET java_opts=%java_opts% -XX:+UseBiasedLocking
SET java_opts=%java_opts% -XX:+EliminateLocks
REM SET java_opts=%java_opts% -XX:CMSIncrementalSafetyFactor=50
REM Number of garbage collector threads for the parallel young generation collections and for the parallel parts of the old generation collections
SET java_opts=%java_opts% -XX:ParallelGCThreads=10
SET java_opts=%java_opts% -XX:ParallelCMSThreads=5

SET java_opts=%java_opts% -XX:+AggressiveOpts
REM Default size of new generation
REM SET java_opts=%java_opts% -XX:NewSize=512m
REM SET java_opts=%java_opts% -XX:MaxNewSize=1024m
REM instructs the VM to set a 2:1 ratio between young and tenured generations (Ratio of new/old generation sizes)
REM SET java_opts=%java_opts% -XX:NewRatio=2
REM Sets survivor space ratio to 1:8, resulting in larger survivor spaces (the smaller the ratio, the larger the space). Larger survivor spaces allow short lived objects a longer time period to die in the young generation
REM SET java_opts=%java_opts% -XX:SurvivorRatio=8
REM Allows 80% of the survivor spaces to be occupied instead of the default 50%, allowing better utilization of the survivor space memory.
REM SET java_opts=%java_opts% -XX:TargetSurvivorRatio=50
REM SET java_opts=%java_opts% -XX:MaxTenuringThreshold=5

SET java_opts=%java_opts% -XX:+UseCMSInitiatingOccupancyOnly
SET java_opts=%java_opts% -XX:CMSInitiatingOccupancyFraction=80

REM SET java_opts=%java_opts% -XX:+CMSParallelRemarkEnabled
SET java_opts=%java_opts% -XX:+CMSClassUnloadingEnabled

REM The important setting in 64-bits with the Sun JVM is -XX:+UseCompressedOops as it saves memory and improves performance
SET java_opts=%java_opts% -XX:+UseCompressedOops
SET java_opts=%java_opts% -XX:+UseFastAccessorMethods

REM Logging
REM SET java_opts=%java_opts% -XX:+PrintGCDetails
REM SET java_opts=%java_opts% -XX:+PrintGCDateStamps
REM SET java_opts=%java_opts% -XX:+PrintGCApplicationStoppedTime
REM SET java_opts=%java_opts% -XX:+PrintGCTimeStamps
REM SET java_opts=%java_opts% -XX:+PrintGC
REM SET java_opts=%java_opts% -Xloggc:./log/game/garbage_collector.log

SET java_settings=%java_settings% -Dfile.encoding=UTF-8
SET java_settings=%java_settings% -Djava.net.preferIPv4Stack=true
SET java_settings=%java_settings% -Dl2nextgen.library=./lib
SET java_settings=%java_settings% -Xbootclasspath/p:./lib/jsr166.jar

java -server %java_settings% %java_opts% -cp ./lib/*;l2nserver.jar l2n.game.GameServer

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo L2NGame: Administrator Restarting.
echo.
goto start
:error
echo.
echo L2NGame: Server terminated abnormally.
echo.
:end
echo.
echo L2NGame: Server terminated.
echo.
del gameserver_is_running.tmp
pause

 

εψαξα ολο το forum αλλα δεν με βοηθησε κατι , καποιος που να γνωριζει κατι!

 

μου λεει πως δεν εχω αρκετο Vm!

Recommended Posts

  • 0
Posted

Starting L2NextGen Game Server.

 

Error occurred during initialization of VM

java.lang.NoSuchMethodError: java.lang.ClassLoader.registerAsParallelCap

        at java.security.SecureClassLoader.<clinit>(Unknown Source)

        at sun.misc.Launcher.<init>(Unknown Source)

        at sun.misc.Launcher.<clinit>(Unknown Source)

        at java.lang.ClassLoader.initSystemClassLoader(Unknown Source)

        at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)

  • 0
Posted

@echo off

@color 0A

title L2NextGen GameServer

:start

echo %DATE% %TIME% Game server is running !!! > gameserver_is_running.tmp

echo Starting L2NextGen Game Server.

echo.

REM set PATH="type here your path to java jdk/jre (including bin folder)"

REM Default parameters for a basic server.

 

REM ======== Optimize memory settings =======

REM Minimal size with geodata is 1.5G, w/o geo 1G

REM Make sure -Xmn value is always 1/4 the size of -Xms and -Xmx.

REM -Xms<size> set initial Java heap size

REM -Xmx<size> set maximum Java heap size

REM -Xmn<size> Size of young generation

REM ===============================

REM Set heap min/max to same size for consistent results

REM одинаковый размер памяти для Xms и Xmx, JVM пытается удержать размер heap'а минимальным, и если его нужно меньше, чем в Xmx - гоняет GC понапрасну

SET java_opts=%java_opts% -Xms4096m

SET java_opts=%java_opts% -Xmx4096m

 

REM Non Heap memory

SET java_opts=%java_opts% -XX:PermSize=512m

REM Maximum size of the permanent generation.

SET java_opts=%java_opts% -XX:MaxPermSize=640m

 

REM Garbage collector/Performance Options

SET java_opts=%java_opts% -XX:+UseConcMarkSweepGC

SET java_opts=%java_opts% -XX:+UseParNewGC

SET java_opts=%java_opts% -XX:+CMSIncrementalMode

SET java_opts=%java_opts% -XX:MaxGCPauseMillis=500

SET java_opts=%java_opts% -XX:+DoEscapeAnalysis

SET java_opts=%java_opts% -XX:+UseBiasedLocking

SET java_opts=%java_opts% -XX:+EliminateLocks

REM SET java_opts=%java_opts% -XX:CMSIncrementalSafetyFactor=50

REM Number of garbage collector threads for the parallel young generation collections and for the parallel parts of the old generation collections

SET java_opts=%java_opts% -XX:ParallelGCThreads=10

SET java_opts=%java_opts% -XX:ParallelCMSThreads=5

 

SET java_opts=%java_opts% -XX:+AggressiveOpts

REM Default size of new generation

REM SET java_opts=%java_opts% -XX:NewSize=512m

REM SET java_opts=%java_opts% -XX:MaxNewSize=1024m

REM instructs the VM to set a 2:1 ratio between young and tenured generations (Ratio of new/old generation sizes)

REM SET java_opts=%java_opts% -XX:NewRatio=2

REM Sets survivor space ratio to 1:8, resulting in larger survivor spaces (the smaller the ratio, the larger the space). Larger survivor spaces allow short lived objects a longer time period to die in the young generation

REM SET java_opts=%java_opts% -XX:SurvivorRatio=8

REM Allows 80% of the survivor spaces to be occupied instead of the default 50%, allowing better utilization of the survivor space memory.

REM SET java_opts=%java_opts% -XX:TargetSurvivorRatio=50

REM SET java_opts=%java_opts% -XX:MaxTenuringThreshold=5

 

SET java_opts=%java_opts% -XX:+UseCMSInitiatingOccupancyOnly

SET java_opts=%java_opts% -XX:CMSInitiatingOccupancyFraction=80

 

REM SET java_opts=%java_opts% -XX:+CMSParallelRemarkEnabled

SET java_opts=%java_opts% -XX:+CMSClassUnloadingEnabled

 

REM The important setting in 64-bits with the Sun JVM is -XX:+UseCompressedOops as it saves memory and improves performance

SET java_opts=%java_opts% -XX:+UseCompressedOops

SET java_opts=%java_opts% -XX:+UseFastAccessorMethods

 

REM Logging

REM SET java_opts=%java_opts% -XX:+PrintGCDetails

REM SET java_opts=%java_opts% -XX:+PrintGCDateStamps

REM SET java_opts=%java_opts% -XX:+PrintGCApplicationStoppedTime

REM SET java_opts=%java_opts% -XX:+PrintGCTimeStamps

REM SET java_opts=%java_opts% -XX:+PrintGC

REM SET java_opts=%java_opts% -Xloggc:./log/game/garbage_collector.log

 

SET java_settings=%java_settings% -Dfile.encoding=UTF-8

SET java_settings=%java_settings% -Djava.net.preferIPv4Stack=true

SET java_settings=%java_settings% -Dl2nextgen.library=./lib

SET java_settings=%java_settings% -Xbootclasspath/p:./lib/jsr166.jar

 

java -server %java_settings% %java_opts% -cp ./lib/*;l2nserver.jar l2n.game.GameServer

 

if ERRORLEVEL 2 goto restart

if ERRORLEVEL 1 goto error

goto end

:restart

echo.

echo L2NGame: Administrator Restarting.

echo.

goto start

:error

echo.

echo L2NGame: Server terminated abnormally.

echo.

:end

echo.

echo L2NGame: Server terminated.

echo.

del gameserver_is_running.tmp

pause

 

Μα αυτό δεν είναι σφάλμα...
  • 0
Posted

64bit einai exw kanei install kai to 32bit (windows x86) alla den kserw ti mporei na ftaiei!

 

E για αυτό ρε φιλαράκο x86 και x32 είναι το ίδιο και το αυτό βάλε x64.

Kαι βγάλε εντελώς το x32 ίσως αυτό είναι το πρόβλημα σου. Μη τα μπερδεύεις.

  • 0
Posted

64bit einai exw kanei install kai to 32bit (windows x86) alla den kserw ti mporei na ftaiei!

Διέγραψε τελείως αυτό με τα 32, βάλε το σωστό path του bin στο JAVA_HOME κάνε rr pc και πες μου.
  • 0
Posted

Αναρωτιέμαι γιατί μιλάτε τόση ώρα για την RAM αφού δεν έχει καμία σχέση.

 

Error occurred during initialization of VM

java.lang.NoSuchMethodError: java.lang.ClassLoader.registerAsParallelCap

 

Είναι καθαρό από το error ότι μέσα στον κώδικα καλείται μια μέθοδος που δεν υπάρχει. (η java.lang.ClassLoader.registerAsParallelCap)

Guest
This topic is now closed to further replies.


  • Posts

    • Hello guys, As you can understand I don't want to share yet many information regarding the project while it is under heavy development stage, I can understand your curiosity about  "What might be" however think it like a secret sauce from a restaurant that does not actually share the recipe from it, but of course once we have something in our hands we will provide any logical information. If you are interested that much you can always take a look in our discord: https://discord.com/invite/mightyproject Hello there, No it is not Unreal Engine 5, well for this we will need some good budget and a skilled team based on UE5. Thank you looking foward seeing you playing in our project soon, and trust me it will be mighty! https://discord.com/invite/mightyproject
    • Hello guys, There isn't much information to share yet regarding the project. We've been working on it for the past few months with the goal of creating something unique and truly different. Over the years, I've seen countless projects with the same features repeated over and over again. This time, we're aiming to build something solid and unlike anything players have seen before. Since many of you have been asking about Unreal Engine 5, I'd like to clear that up. Building something on UE5 requires a very large team and a lot of resources to accomplish properly. Right now, we can't say anything regarding UE5. Maybe in the future, who knows? Tzelal is a real life friend of mine. I've known him for many years, and he's a great guy. Right now, he's looking for people who genuinely want to be part of this project. The team is working 20+ hours a day, every single day. I'm often on calls with them, watching their progress and seeing everything they're creating. So, if anyone is wondering what's happening behind the scenes, my answer is simple, something amazing. I know many of you have been asking about features and other details, but we don't want to spoil anything just yet. There is still a lot of work to be done, and we'd rather reveal things when they're ready. Once everything is in the state we want, we'll start releasing sneak peeks. If you'd like to join the project, feel free to send Tzelal a private message so you can go through an interview. Please don't waste his time, or yours, if you're not genuinely interested. Now, I'd like to make a few things clear. No, we're not making another generic server with the same old features and the same old engine that you've seen for years. Our goal is to build something completely different, something that players haven't experienced before. And no, we're not going to give up on development. We work every day, and we keep pushing forward even when some challenges seem difficult. We're committed to making this project the best it can be. That's all for now. There will be much more to share once we're ready to show it. Thanks for your time, everyone.
    • 📢 MMORE.DEV — ONE SLOT AVAILABLE FOR A PROJECT   1 slot has opened up for long-term cooperation. We welcome anyone interested — we're looking for projects built for long-term collaboration, not one-off tasks.   🎯 We're ready to take on projects for these chronicles:   Essence Classic   Current protocols: 520, 542, 557+ One example of our developers' work — the Aden.Land team.   📋 We're also accepting preliminary discussions for the Main (GOD) branch — if you're planning a project on this chronicle, reach out in advance so we can go over the details and timeline. _______________________________________________________________________   For any questions — PM us or reach out on Telegram: https://t.me/L2scripts
    • 🔥 L2SCRIPTS BIG SALE 🔥 30-50% OFF ALL LEGACY PRODUCTS! Special offer for MaxCheaters users! Promotion runs from July 25 to August 1 inclusive _____________________________________________________    🎁 Promo details: 30-50% discount on all legacy studio products Source codes, ready-made builds, technical support — everything you've been wanting to grab at a great price. ___________________________________________________________________________   ⚡ Why you should hurry: A discount like this across the whole lineup is a rare event in our 20 years on the market This offer is strictly time-limited — exactly 7 days, no extensions Available only for MaxCheaters users Support slots are limited. ____________________________________________________ ✅ Proven quality — 20 years in the L2 market ✅ Full range of chronicles and ready-made solutions ✅ Personal support from our team ____________________________________________________   🌐 Our websites: L2-scripts.com — https://l2-scripts.com Mmore.dev — https://mmore.dev Telegram for contact: https://t.me/L2scripts ____________________________________________________   Don't miss your chance! In 7 days prices go back to normal — grab what you need at the best price in the studio's history. ➡️ Browse the product catalog: https://l2-scripts.com For any questions — PM us or check the support thread.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..