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

    • 🎉 L2NeverPain StuckSub - GRAND OPENING 12 December 2025🎉 After beta, testing, mistakes, laughs and a lot of PvP, the moment has finally come. L2NeverPain StuckSub is officially opening its gates on 12 December 2025.   ⚔️What to expect: ✦Main Class +2 Stuck Sub system ✦Balanced PvP & custom party farm areas ✦Custom events, bosses and strong rewards ✦Competitive clan scene with castle rewards   📌Until the opening: ✦Create your clans and register them in the Clan-Register channel ✦Invite your friends / old parties / CPs ✦Stay tuned for more information (rates, events, siege times, etc.)   Get your setups ready, prepare your macros and your Discord/voice. On 12 December 2025 20:00 GMT+2, we write the first chapter of NeverPain together. 🔥 https://l2neverpain.com/ https://discord.gg/kNP3UXgkmN
    • Check my post where I shared Lucera pack, you can pick textures from there. Here is a link of datapack/srv  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Server and Datapack files.rar
    • Hi friends, does anyone have these Aden Classic textures for IL + geodata? Please ❤️  
    • New products in our store: ➡Telegram Ukraine +380 | NO USED BEFORE | CLEAR ACCOUNTS | TDATA | No Spam Block | 2FA included | Age: from 3 days | Price from $3.2 ➡Facebook OLD Account 2020–2023 | Geo: EU+ASIA | Age: 2020–2023 | Profile filled with real friends: 50+ | Email Included + 2FA included | Real accounts | Price from $4.5 ➡SORA 2 | Invite code for YOUR account or a READY ChatGPT account + Sora 2 (read the product description) | Price from $2 ➡Instagram REALLY OLD accounts (2010–2013) with/without 2FA access | Country: MIX | Submail included | Price from $4 ➡Reddit FOR ONLYFANS Karma OLD Accounts | 1,000–10,000 KARMA (your choice) | MIX IP Registered | High-Quality Accounts for ONLYFANS WORKERS | Price from $4 ➡Mail.tm (temporary mails) AutoReg Account | Mixed IPs and Mixed Gender | IMAP, POP3, and SMTP Enabled | Price from $0.005 ➡ShadowSocks, VLESS, Trojan VPN Client | Any Country of Your Choice | Works on All Devices and in Any Country (Including Russia!) | Duration: 30/90/180/360 days | Price from $3 ➡TIKTOK ADS VERIFIED ACCOUNTS | GEO: ASIA/USA/EUROPE, AFRICA, ARABIC COUNTRIES, SOUTH AMERICA | Business Verified On ASIA/USA/EUROPE Company + POSTPAY | FULL ACCESS | Price from: $20 ➡TIKTOK ADS ACCOUNTS | GEO: Europe + Australia (your choice) | Business Verified + POSTPAY + BONUS COUPON for $6000 | Manual Registration | Email access + Cookies + VAT Info | Price from: $6 ➡Telegram API/HASH USA +1 Autoreg 1+ month age TDATA + SESSION + JSON + 2FA + API/HASH ID | Price from: $0.95 ➡KYC Business Verification Services | Verification for any service | Available geo: EUROPE, USA, ASIA Companies | Price from $300 ➡Telegram USA/Canada +1 with ACTIVE PREMIUM UP TO 01.12.2025 Autoreg | Age: from 6+ months | TDATA + SESSION + JSON + 2FA + PREMIUM | Price from $0.65 ➡Telegram USA/Canada +1 with ACTIVE PREMIUM (30 DAYS) Autoreg | Age: from 6+ months | TDATA + SESSION + JSON + 2FA + PREMIUM for 30 DAYS | Price from $5 Available for purchase in our store on the website or via the Telegram bot! Active links: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store through the Telegram messenger. Other services: Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present you the current list of promotions and special offers for purchasing our service’s products and services: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — simply send your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." — you need to write this in our forum thread! 3. Get $1 for the first trial start of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! News: ➡ Telegram channel: https://t.me/accsforyou_shop ➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock