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
  On 9/7/2013 at 7:52 PM, Greekportal said:

@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
  On 9/7/2013 at 7:55 PM, Greekportal said:

το διορθωσα ξανακοιταξε.

Δώσε περισσότερη μνήμη στο gs.bat
  • 0
Posted
  On 9/7/2013 at 8:02 PM, Greekportal said:

windows server 2008 64bit.

Το java που χρησιμοποιείς είναι για 32 ή 64 bit;
  • 0
Posted
  On 9/7/2013 at 8:05 PM, Greekportal said:

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
  On 9/7/2013 at 8:05 PM, Greekportal said:

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 αφού δεν έχει καμία σχέση.

 

  Quote

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, I’d like to introduce your audience to my original project, which has gained popularity in Europe and among the Russian-speaking community. I just never got around to posting about it here until now. At one point, I wanted to develop a launcher (game file downloader) in the browser, and that idea eventually evolved into a full-fledged CMS engine with extensive functionality. SphereWeb is a massive ecosystem for Lineage 2 JAVA servers, packed with everything a server administrator and players might need. From October 2024 to April 24, 2025, my project has been installed on 250 different domains. SphereWeb is your best choice — a modern web engine designed specifically for administrators of Lineage 2 Java game servers. It offers a rich and user-friendly interface for managing your server with ease. ✅ Player Control Panel – covers all player needs: Authorization, registration, password change, account linking and synchronization, contacting the admin via support system, teleporting a character (and sending items to warehouse) to a town, warehouse management (sending items in-game), and making server donations. ✅ Admin Control Panel – opens up new horizons, giving you access to: Extensive panel customization (more on this later) Donation history with charts News and page creation Stream management (add streams) Item shop creation Starter packs creation Bonus code generation XenForo news integration Email message settings Global activity log Traffic insights (track where your users come from) Extensions section (plugins – more on that later) Server management Auto software updates Tech support Custom translations Now, about the Control Panel settings: The standard settings are organized into several tabs: Language There are 5 available languages: Russian, English, Spanish, Portuguese, and Greek, covering 99% of translation needs. You can also set a default language for the panel.   Features Toggle built-in features of the control panel: News, Shop, Balance, Statistics, Support, Balance Transfer, Bonus Code, Streams, Data Emulation. Enable/disable options to keep the panel clean and focused on what you need. Captcha Support for Google reCAPTCHA, Cloudflare Turnstile, or default hCaptcha. Old-school recommendation: use Google reCAPTCHA v2. Fake Online Boosting Basic settings for boosting the online counter. Registration Settings Configuration options for the registration process. Email Connect your panel to an SMTP server. Misc General-purpose settings and adjustments. Template Choose and preview the design template for your landing page. Logo Upload your control panel logo and favicon. Palette Customize the color scheme of your control panel interface. Menu Add links to your site’s navigation menu. Background Upload high-resolution background images for login, registration, and password recovery pages. Notifications Set up Telegram notifications for selected events. In Sphere 2, I’ve paid special attention to plugins, making it easy to add and expand functionality. By default, the panel includes several built-in extensions (plugins).   Giveaway – allows you to host item giveaways for users directly on the website. Internal Forum – a built-in forum system inside the Control Panel (more details on it below). Launcher – a free solution for updating game files. It delivers unmatched speed and runs directly in the browser, allowing full design customization. Traders – (currently for Lucera2 only) displays a list of offline shops, their items, prices, and player locations directly on the website. Roulette – a fun game where users spin the wheel to win items. Item Editor – a tool for creating custom in-game items. Item Increase – tracks and displays item count by ID across the server in graph form, showing which players hold the most. Registration Statistics – a simple chart showing registration trends over time. SQL Collection – a plugin for adding or adjusting Java server builds if your current build isn’t supported or needs customization. ✅ Supported Java Server Builds The system currently supports a variety of popular Java server builds. Full list available in the admin panel. 🧩 Forum Plugin In the first version of Sphere, a basic internal forum was quite popular among server admins — so in Sphere 2, it came back better than ever. Inspired by XenForo, the forum is rich in features and designed for both community and solo players: Players can create clan communities to connect and play together. Clan creators can upload clan logos and header banners, customize text color for the clan name. Clan members can post on the public clan wall or chat in a dedicated clan chat. Clan logos and banners appear across the forum for all members. For players who like to show off: Under each username, the forum can display PvP/PK stats, in-game time, and character list. Players can choose to hide this data if they prefer privacy. Admins can assign moderator roles to users for specific forum sections, ensuring proper content management and community moderation.   💰 Donations & Rewards The administrator has a wide range of reward settings for player donations — almost every suggested method has been implemented: Cumulative discount system – discounts increase as the total donation amount grows. One-time bonus – an extra reward for a specific donation. Permanent shop discounts – based on the player's total donation history. One-time item shop discounts – also based on total donations. Item-based rewards – configurable rewards delivered automatically after donation. ✅ Supported Payment Systems (Current list is available in the admin panel and may vary by region.) 🔄 SphereWeb Auto-Update System Sphere is actively developed — I improve it almost daily. To ensure everyone stays updated, I’ve implemented multiple update methods: Automatic – once I push updates to GitHub, they are downloaded to Sphere clients within 5 minutes. Manual – if automatic updates are disabled or your site was offline during update release, you can trigger the update manually with one click. File Scanner – this feature scans your Sphere installation, compares files with the latest version, and shows missing or modified files you can restore. 📸 Control Panel Screenshots (Here you’d typically show screenshots or say where they can be found.)   💬 Final Words A lot of work has gone into this project. I occasionally post updates in the Sphere Telegram channel — when I don’t forget. I’m truly proud of the results. 🚀 Want to Install It? Before you rush in, please note: Installation won’t work on localhost. A valid SSL certificate is required. Repo: GitHub - Cannabytes/SphereWeb2 Upload the archive to your hosting. Open your website in the browser — the installer will guide you. ⚠️ Some Russian hosting providers block wide IP ranges, which may interfere with installation. 💸 Pricing Three usage plans available: Free – limited to 20 game account registrations per day. $12.5/month – no Sphere limitations. $20/month – no Sphere limitations + access to all commercial plugins. Your balance is shown in the admin panel, and you can renew access anytime. ✅ All users receive updates, regardless of subscription tier. A lot of work has been done, and from time to time I share updates in the Sphere Telegram channel — when I don’t forget. I’m truly proud of what I’ve built. Did you like it? Want to install it yourself? Please note — you won’t be able to install it on a local server. A valid SSL certificate is also required. Steps to install: Download the package from the GitHub repository: Cannabytes/SphereWeb2 Extract the archive on your hosting. Open your website in a browser — the installer will launch automatically. Just follow the instructions. 🔧 Minimum Requirements: PHP 8.2 MariaDB or MySQL 5.8 SSL certificate for your website   💵 Pricing SphereWeb offers 3 usage options: Free Plan – limited to 20 game account registrations per day. $12.5/month – no limitations, full access to Sphere features. 3. $20/month – no limitations + access to all commercial plugins. Your current balance is shown in the admin panel, and you can renew your license whenever you wish. Regardless of your plan, you will always receive updates. 🆕 Latest Updates: User Registration Source Tracking: Now, when a user registers, you can see where they came from before landing on the site via Telegram notifications. Bulk Deletion of Bonus Codes: Added functionality to bulk delete bonus codes for better management. Starter Pack Editor: A new editor for creating and managing starter packs is now available. Item Removal from Warehouse: Admins can now remove items from a user's warehouse. Server-Specific Settings: Each server now has a "Functions" button, providing additional customization options for each server. Warehouse Cleanup: Admins can now clear the warehouse for all users or by specific item ID. Custom Return Button: The "Return to Site" button can now be disabled, and you can set a custom link for it. Character List UI Overhaul: The character list in the admin panel has been redesigned to be more minimalist and user-friendly. User Info Page Improvements: The user information page has been enhanced for better navigation and access to key data. Donation History Updates: The donation history page has been improved for better data presentation. Item Stacking and Splitting: Users can now stack or split identical items (e.g., ID 57 (150) + ID 150 = ID 57 (300)). Admins can configure which items can be stacked and split. Account Deletion: Users now have the option to delete their own accounts from the account list. Success Chest Plugin: A new "Success Chest" plugin has been added, allowing admins to define chests with specific items, their prices, and visual parameters. Reworked Warehouse: The warehouse now operates in a separate modal window. When items are purchased, they are automatically added to the warehouse without page reloads. Registration Reward: Admins now have the ability to reward users for registration, adding more incentives. Item Stacking and Splitting Customization: Admins can now specify which items players can split and stack in their warehouse. These settings are available in the admin panel under the server's "Functions" button, offering granular control over item management. Account Deletion Feature: Players now have the ability to remove their accounts from the account list (but not from the server). In the future, this feature will be customizable for each server. Success Chest Plugin: A new "Success Chest" plugin has been added, allowing admins to define the items inside the chest. Players can then randomly draw one item from the chest. This feature is still in early testing, and any feedback or issues will be addressed in future updates. Improved Warehouse/Inventory: The warehouse/inventory system has been enhanced. Now, when items (such as starter packs or chests) are purchased, they are immediately added to the warehouse without requiring a page refresh. Additionally, the modal window for the warehouse now opens when the warehouse button is clicked with the mouse wheel. 😊 Log Sorting by Server: Logs now include the ability to sort by server, making it easier to manage and review data for each individual server. Registration Source Tracking: Telegram notifications now include information about where a user came from before registering on your site. Bulk Deletion of Bonus Codes: Admins can now bulk delete server-specific bonus codes, as well as bonus codes that were generated for all servers. Customizable Starter Packs: A new option has been added to modify and customize starter packs, giving more flexibility to server admins. Item Removal from Warehouse in Profile: Admins can now remove items from a user's warehouse directly from their profile. "Functions" Button in Admin Panel: A new "Functions" button has been added to the admin panel, offering additional tools for server management. This includes the ability to clear the server’s warehouse entirely or by specific item ID. Disabling the "Return to Site" Button: Under Admin Panel -> Settings -> Miscellaneous, there is now an option to disable the "Return to Site" button in the site menu
    • We are waiting you today at 8pm +3 GMT website: https://l2evo.net The patch will be available 30 min before the grand opening. Come join the best Interlude pvp server.  
    • We are certainly not an ambulance, but we will definitely cure you of blacklists and empty pockets. Live freely with SX! Each of you will receive a trial version of SX to familiarize yourself with the product, all you have to do is post in this thread
  • Topics

×
×
  • Create New...