Jump to content
  • 0

how to increase java heap size


Question

10 answers to this question

Recommended Posts

  • 0
Posted

can anyone explain how to increase java heap size? i've read topics here but noone had written this.

Where did u read topics?In this section?

 

There are more than 100 topics about this @ dev help

  • 0
Posted

Where did u read topics?In this section?

 

There are more than 100 topics about this @ dev help

 

Yea there are guides everywhere reguarding this.

 

Open up gameserver.bat and look at the line that says:

java -Xmx512m -cp ./libs/*; net.sf.l2j.gameserver.GameServer

 

Replace it with something like this:

java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -cp ./libs/*; net.sf.l2j.gameserver.GameServer

 

;)

  • 0
Posted

i have 8 GB of RAM and when i write java -Xmx2024m -Xms2024m -cp  in gameserver.bat and start the server, the gameserver writes Error occurred during initialization of VM

The size of the object heap + VM data exceeds the maximum representable size

  • 0
Posted

i have 8 GB of RAM and when i write java -Xmx2024m -Xms2024m -cp  in gameserver.bat and start the server, the gameserver writes Error occurred during initialization of VM

The size of the object heap + VM data exceeds the maximum representable size

 

i wrote that and it said this:

 

 

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

 

  • 0
Posted

i wrote that and it said this:

 

 

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

 

 

You are probably using 32bit Java and if will not go over 1520mb, for anything higher you have to run 64bit java.

  • 0
Posted

i wrote that and it said this:

 

 

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

 

 

Try java -Xmx2024m -Xms1536m      Little tip always have Xms set to a smaller number than Xmx. Also make sure you make it smaller in increments like 256, 512,1024  see where I'm going with that? :)

  • 0
Posted

You are probably using 32bit Java and if will not go over 1520mb, for anything higher you have to run 64bit java.

 

thanks a lot i have solved the problem using java 64 bit

  • 0
Posted

Try java -Xmx2024m -Xms1536m      Little tip always have Xms set to a smaller number than Xmx. Also make sure you make it smaller in increments like 256, 512,1024  see where I'm going with that? :)

 

actually until its not bigger doesnt matter and it has no effect at all having xms at the same value xms is by far more than enough

Guest
This topic is now closed to further replies.


  • Posts

    • Advanced Lineage II Event Engine – Flexible, Scalable, and Developer-Friendly Introducing a powerful and fully customizable event engine designed to enhance gameplay, increase player engagement, and simplify event management. Whether you're running a high-rate PvP server or a low-rate retail-like experience, this engine provides the flexibility you need to create and automate dynamic in-game events.   ✅ Compatible with aCis 401 – Fully coded for aCis project (revision 401) and ready for seamless integration. 📜 Delivered as a .diff Patch – Simply apply it and start using it right away!   📸 Check out the screenshots & features: Imgur Album (more soon). Key Features ✔ Fully Configurable – Every aspect of each event can be customized, including timers, rules, rewards, and restrictions. ✔ Seamless Integration – Works with existing server configurations and supports custom scripts or modifications. ✔ Automated Event Rotation – Events can be scheduled or started via a voting phase where players choose the next event. ✔ Multi-Mode Participation – Players can join via commands (.register | .leave | .events) or NPC interactions. ✔ Real-Time Tracking – An on-screen HUD displays kills, scores, and time remaining. ✔ Enhanced PvP Mechanics – Auto-respawn, score-based rewards, and First Blood announcements. ✔ Spectator Mode – Allows non-participants to watch events live. ✔ Detailed Event Logs – Administrators can track player performance, winners, and event results for analysis. Reward System Player-Based Rewards: Configurable options for winning, losing, ranking in the top X, or achieving First Blood. Kill-Based Rewards: Earn rewards per kill or based on streaks. Team-Based Rewards: Incentivize team victories with shared prizes. Included Event Modes Team Fights (TDM): Classic team-based PvP with configurable duration, respawn rules, and score limits. Solo Fights (Deathmatch): Free-for-all PvP—highest kill count wins. Last Survivor (LMS): No respawns—last player standing wins. Lucky Chests: Random chests with rewards, traps, or debuffs. Treasure Hunt: Players race to find a hidden treasure. Monster Massacre (PvE Race): Teams compete to slay the most monsters. Territory Clash: Players battle to control a zone and earn points over time. Ultra Rapid Fire (URF Mode): Boosted stats, reduced skill cooldowns, and enhanced combat speed. Assassin Hunt: A random player is marked as the target—others must eliminate them. Monster Mayhem (Boss Raid): A powerful boss spawns; players must cooperate (or fight each other) to take it down. Power-Up Clash: Players collect battlefield buffs for a combat advantage. Why Choose This Event Engine? ✅ Fast Implementation – Set up new events in minutes with an intuitive configuration system. ✅ Performance Optimized – Lightweight and designed for high player counts without impacting server stability. ✅ Extensive Customization – Easily modify or extend functionality to suit your server’s needs. ✅ Developer Support – Well-documented API and configuration options for easy integration. Transform your server’s event experience with a feature-rich, developer-friendly solution. 🚀 Ready to integrate? Contact us for licensing details! Get Your Copy Today! Upgrade your Lineage II server with this powerful event engine and bring next-level gameplay to your players. With fully customizable settings, automated event management, and seamless integration, this system is a must-have for any serious server administrator.   💰 Pricing: Full License: 100e (One-time payment) Support & Updates: included on full licence   📩 How to Purchase: PM me directly for inquiries and purchases. Discord: @Luminous
    • we sell website templates, make websites to order. Great selection at very good prices. My contacts   discord - adver745645   telegram - @mmopromo
    • Hello everyone, people often ask me how to help me. Here I will describe the general principle of how to create a simple window for ui (unity l2)   Here I am looking at an already created ActionWindows window   1. Assets\Resources\Data\UI\_Elements\Game 2.    Let's call it ActionWindows 3. Let's go to the newly created window 4.as you can see it is empty. But we already have a ready-made window template so that we don’t have to assemble it again every time. We will connect a ready-made design for a new window 5. open the window code 6. 7. Add new code  <ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xmlns="UnityEngine.UIElements" editor-extension-mode="False"> <ui:Template name="DefaultWindowsAction" src="project://database/Assets/Resources/Data/UI/_Elements/Template/DefaultWindowsAction.uxml?fileID=9197481963319205126&amp;guid=2fdd4636702f00a4e98644cfa7468b14&amp;type=3#DefaultWindowsAction" /> <ui:Instance name="defaultWindowsAction" template="DefaultWindowsAction" style="width: 317px; height: 575px; position: absolute;"> <AttributeOverrides element-name="windows-name-label" text="Actions" /> <ui:VisualElement name="Background" class="background_over" style="flex-grow: 1; min-width: auto; min-height: auto; justify-content: flex-start; align-items: flex-start; position: absolute; background-image: resource(&apos;Data/UI/Window/Frame_DF_Large_Bg_Darker_Center_Alpha&apos;); height: 91%; top: 38px; width: 95%; left: 8px; display: flex; visibility: visible; overflow: visible; opacity: 1;" /> <ui:GroupBox name="BoxHeader" class="drag-area" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-bottom: 0; padding-left: 0; position: absolute; top: 15px; align-self: stretch; height: 4%; width: 88%;" /> </ui:Instance> </ui:UXML>   8.We take a template  project://database/Assets/Resources/Data/UI/_Elements/Template/DefaultWindowsAction.uxml 9. This piece of code can be taken from other windows so as not to write every time 10. Save 11.Drag the GroupBox node   12. Changing its position settings   I can change all the settings from the editor. But if you knew, then a very similar technology to CSS is better   if you open the window code you can notice everything is the same as in css you can create settings in the window code or use a file with all the styles   Assets\Resources\Data\UI\_Elements\L2StyleSheet.uss In the next issue we will write code to connect it to the game logic. Unless of course you delete the article.  
    • Hey, can you please renew download link?
  • Topics

×
×
  • Create New...