Freezy/lag

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
edawid
Posts: 8
Joined: Sat May 23, 2009 10:33 am

Freezy/lag

Post by edawid »

My problem is with lags. When is 5 ppl online, they have lags. When is 50 ppl online, they have lags. My server:
* CPU: Intel Xeon 2x2.80GHz
* RAM: 4 GB
* HDD: 20 GB
* 100 mb/s download/upload
*debian Lenny

my.cnf

Code: Select all

## The MySQL database server configuration file.## You can copy this to one of:# - "/etc/mysql/my.cnf" to set global options,# - "~/.my.cnf" to set user-specific options.# # One can use all long options that the program supports.# Run program with --help to get a list of available options and with# --print-defaults to see which it would actually understand and use.## For explanations see# http://dev.mysql.com/doc/mysql/en/server-system-variables.html # This will be passed to all mysql clients# It has been reported that passwords should be enclosed with ticks/quotes# escpecially if they contain "#" chars...# Remember to edit /etc/mysql/debian.cnf when changing the socket location.[client]port		= 3306socket		= /var/run/mysqld/mysqld.sock # Here is entries for some specific programs# The following values assume you have at least 32M ram # This was formally known as [safe_mysqld]. Both versions are currently parsed.[mysqld_safe]socket		= /var/run/mysqld/mysqld.socknice		= 0 [mysqld]## * Basic Settings#user		= mysqlpid-file	= /var/run/mysqld/mysqld.pidsocket		= /var/run/mysqld/mysqld.sockport		= 3306basedir		= /usrdatadir		= /var/lib/mysqltmpdir		= /tmplanguage	= /usr/share/mysql/englishskip-external-locking## Instead of skip-networking the default is now to listen only on# localhost which is more compatible and is not less secure.bind-address		= 84.12.1.32## * Fine Tuning#key_buffer		= 16Mmax_allowed_packet	= 16Mthread_stack		= 128Kthread_cache_size	= 8# This replaces the startup script and checks MyISAM tables if needed# the first time they are touchedmyisam-recover		= BACKUP#max_connections        = 100#table_cache            = 64#thread_concurrency     = 10## * Query Cache Configuration#query_cache_limit       = 1Mquery_cache_size        = 16M## * Logging and Replication## Both location gets rotated by the cronjob.# Be aware that this log type is a performance killer.#log		= /var/log/mysql/mysql.log## Error logging goes to syslog. This is a Debian improvement :)## Here you can see queries with especially long duration#log_slow_queries	= /var/log/mysql/mysql-slow.log#long_query_time = 2#log-queries-not-using-indexes## The following can be used as easy to replay backup logs or for replication.# note: if you are setting up a replication slave, see README.Debian about#       other settings you may need to change.#server-id		= 1#log_bin			= /var/log/mysql/mysql-bin.logexpire_logs_days	= 10max_binlog_size         = 100M#binlog_do_db		= include_database_name#binlog_ignore_db	= include_database_name## * BerkeleyDB## Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.skip-bdb## * InnoDB## InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.# Read the manual for more InnoDB related options. There are many!# You might want to disable InnoDB to shrink the mysqld process by circa 100MB.#skip-innodb## * Security Features## Read the manual, too, if you want chroot!# chroot = /var/lib/mysql/## For generating SSL certificates I recommend the OpenSSL GUI "tinyca".## ssl-ca=/etc/mysql/cacert.pem# ssl-cert=/etc/mysql/server-cert.pem# ssl-key=/etc/mysql/server-key.pem   [mysqldump]quickquote-namesmax_allowed_packet	= 16M [mysql]#no-auto-rehash	# faster start of mysql but no tab completition [isamchk]key_buffer		= 16M ## * NDB Cluster## See /usr/share/doc/mysql-server-*/README.Debian for more information.## The following configuration is read by the NDB Data Nodes (ndbd processes)# not from the NDB Management Nodes (ndb_mgmd processes).## [MYSQL_CLUSTER]# ndb-connectstring=127.0.0.1  ## * IMPORTANT: Additional settings that can override those from this file!#   The files must end with '.cnf', otherwise they'll be ignored.#!includedir /etc/mysql/conf.d/  
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Freezy/lag

Post by momo61 »

maybe your 20GB is too little ? Maybe its full or something ?
User avatar
Copyleft
Posts: 253
Joined: Fri Feb 01, 2008 9:39 pm

Re: Freezy/lag

Post by Copyleft »

post your server threads config too, maybe will help...
edawid
Posts: 8
Joined: Sat May 23, 2009 10:33 am

Re: Freezy/lag

Post by edawid »

Code: Select all

# ---------------------------------------------------------------------------# Thread Configuration# ---------------------------------------------------------------------------# Extreme caution should be here, set to defaults if you do not know what you are doing.# These could possibly hurt your servers performance or improve it depending on your server's configuration, size, and other factors. # Default: 10ThreadPoolSizeEffects = 10 # Default: 13ThreadPoolSizeGeneral = 13 # Default: 2UrgentPacketThreadCoreSize = 2 # Default: 4GeneralPacketThreadCoreSize = 4 # Default: 4GeneralThreadCoreSize = 4 # Default: 6AiMaxThread = 6 # Packet LifeTime in milliseconds. Disabled = 0.# Default: 0PacketLifeTime = 0 # Dead Lock Detector (a separate thread for detecting deadlocks).# For improved crash logs and automatic restart in deadlock case if enabled.# Check interval is in seconds.# Default: FalseDeadLockDetector = False # Default: 20DeadLockCheckInterval = 20 # Default: FalseRestartOnDeadlock = False
edawid
Posts: 8
Joined: Sat May 23, 2009 10:33 am

Re: Freezy/lag

Post by edawid »

Code: Select all

Loading GameServer Configuration Files...## loading vitality systemMLog clients using java 1.4+ standard logging.Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500, autoCommitOnClose -> true, automaticTestTable -> connection_test_table, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> nlpelb82123ikikobmaat|7a982589, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> nlpelb82123ikikobmaat|7a982589, idleConnectionTestPeriod -> 3600, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://85.17.7.31/l2jdb, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 1000, maxStatements -> 0, maxStatementsPerConnection -> 100, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]L2J Server Version:    2944L2J Datapack Version:  5990Updated characters online status.Cleaned 0 elements from database.IDFactory: 205824 id's available.Initializing Script Engine ManagerScript Engine: BeanShell Engine 1.1 - Language: BeanShell - Language Version: 2.0b5Script Engine: jython 2.2.1 - Language: python - Language Version: 2.2.1Script Engine: java 1.6 - Language: java - Language Version: 1.6Script Engine: Mozilla Rhino 1.6 release 2 - Language: ECMAScript - Language Version: 1.6Unevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceSkillTreeTable: Loaded 42044 skills.FishingSkillTreeTable: Loaded 109 general skills.FishingSkillTreeTable: Loaded 8 dwarven skills.EnchantSkillTreeTable: Loaded 261 enchant skills.PledgeSkillTreeTable: Loaded 64 pledge skillsTransformSkillTreeTable: Loaded 50 transform skillsUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceUnevenly distributed hash code - Degraded PreformanceItemTable: Loaded 2162 Armors.ItemTable: Loaded 8411 Items.ItemTable: Loaded 2937 Weapons.highest item id used:20274Initializing ClanHallManagerL2World: Setting up World RegionsL2World: (96 by 136) World Region Grid set up.error while saving new Forum to db com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '18' for key 1Restored 16 clans from the database.Loaded: 3 clan hallsLoaded: 41 free clan hallsExtractable items data: Loaded 338 extractable items!Summon items data: Loaded 25 summon items.Loading zones...Initializing GrandBossManagerGrandBossManager: Loaded 7 InstancesDone: loaded 407 zones.Initializing CastleManagerInitializing FortManagerSearching clan halls doors:DoorTable: Loaded 689 Door Templates.StaticObject: Loaded 29 StaticObject Templates.NpcTable: Loaded 8655 NPC templates.NpcTable: Loaded 458 Minions.MerchantPriceConfigTable: Loaded 28 merchant price configs.Initializing Walkers Routes Table.DayNightSpawnManager: Day/Night handler initializedSpawnTable: Loaded 39921 Npc Spawn Locations.Loaded: 21 fortressInitializing FortSiegeManagerLoaded: 9 castlesMerchantPriceConfigTable: Loaded 28 merchant price configs.Skipping itemId: 889 on buylistId: 1009, missing data for that item.Skipping itemId: 889 on buylistId: 9127, missing data for that item.TradeController: Loaded 677 Buylists.Initializing InstanceManagerMultiverse Instance createdUniverse Instance createdWalkerRoutesTable: Loaded 228 Npc Walker Routes.NpcBufferSkillIdsTable: Loaded 2 buffers and 64 skills.RecipeController: Loaded 910 recipes.PetSkillsTable: Loaded 1919 skills.ArmorSetsTable: Loaded 128 armor sets.FishTable: Loaded 270 Fishes.SkillSpellbookTable: Loaded 460 Spellbooks.CharTemplateTable: Loaded 103 Character Templates.Cache[HTML]: Running lazy cacheCache[Crest]: 0.005MB on 12 files loaded. (Forget Time: 300s , Capacity: 50)HennaTable: Loaded 180 Templates.HennaTreeTable: Loaded 8136 Henna Tree Templates.Helper Buff Table: Loaded 17 Templates.Geodata Engine: Disabled.Initializing SiegeManagerTeleportLocationTable: Loaded 713 Teleport Location Templates.LevelUpData: Loaded 103 Character Level Up Templates.SevenSigns: Currently in the Seal Validation period!SevenSigns: The Lords of Dawn have won the Seal of Avarice.SevenSigns: The Lords of Dawn have won the Seal of Gnosis.SevenSigns: The Seal of Strife remains unclaimed.SevenSigns: The Lords of Dawn were victorious last week.SevenSigns: Next period begins in 3 days, 2 hours and 37 mins.Siege of Goddard: Fri Jul 17 20:00:00 GMT 2009RaidBossSpawnManager: Loaded 179 InstancesRaidBossSpawnManager: Scheduled 0 InstancesGrandBossManager: Initialized 12 Grand Boss ZonesGrandBossManager: Loaded 7 InstancesFourSepulchersManager: loaded 20 Mysterious-Box spawns.FourSepulchersManager: loaded 716 Physical type monsters spawns.FourSepulchersManager: loaded 716 Magical type monsters spawns.FourSepulchersManager: loaded 92 Church of duke monsters spawns.FourSepulchersManager: loaded 68 Emperor's grave NPC spawns.FourSepulchersManager: spawned Conquerors' Sepulcher ManagerFourSepulchersManager: spawned Emperors' Sepulcher ManagerFourSepulchersManager: spawned Great Sages' Sepulcher ManagerFourSepulchersManager: spawned Judges' Sepulcher ManagerFourSepulchersManager: Beginning in Attack timeFri Jul 17 15:22:57 GMT 2009 Atk announce scheduled to 25.0 minute of this hour.DimensionalRiftManager: Loaded 7 room types with 56 rooms.DimensionalRiftManager: Loaded 462 dimensional rift spawns, 0 errors.Initializing QuestManagerAutoAnnoucements: Load 0 Auto Annoucement Data.ManorManager: Loaded 251 seedsInitializing AuctionManagerLoaded: 34 auction(s)Initializing BoatManagerInitializing CastleManorManagerManor System: Manor period approve updatedManor System: New Schedule for period approve @ Sat Jul 18 06:00:57 GMT 2009Initializing MercTicketManagerLoaded: 0 Mercenary TicketsInitializing PetitionManagerLoading Server ScriptsLoading Handlers...Loaded 392  AdminCommandHandlersLoaded 12  ChatHandlersLoaded 2434 ItemHandlersLoaded 83 SkillHandlersLoaded 15 UserHandlersLoaded 1 VoicedHandlersHandlers Loaded...importing custom: 9999: NPCBufferCompiled Scripts Cache is disabled.Loaded: 469 questsLoaded: 65 transformations.Initializing AugmentationData.AugmentationData: 10 bad skill(s) were skipped.AugmentationData: Loaded: 52 augmentation stats.AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 1AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 2AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 3AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 4AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 5AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 6AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 7AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 8AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 9AugmentationData: Loaded: 17 blue, 106 purple and 54 red skills for lifeStoneLevel 10Initializing ItemsAutoDestroy.SevenSignsFestival: Initialization bypassed due to Seal Validation in effect.Olympiad System: Loading Olympiad System....Olympiad System: Currently in Olympiad PeriodOlympiad System: 21396 minutes until period endsOlympiad System: Next weekly change is in 1725 minutesOlympiad System: Loaded 0 NoblesOlympiad System: Competition Period Starts in 0 days, 2 hours and 36 mins.Olympiad System: Event starts/started : Fri Jul 17 18:00:52 GMT 2009Hero System: Loaded 0 Heroes.Hero System: Loaded 0 all time Heroes.Event ID: (Valentines Event) has passed... Ignored.Initializing CursedWeaponsManagerLoaded : 2 cursed weapon(s).AutoChatHandler: Loaded 32 handlers in total.AutoSpawnHandler: Loaded 133 handlers in total.AccessLevels: Loaded 6 from database.AdminCommandAccessRights: Loaded 393 from database.IdFactory: Free ObjectID's remaining: 1878958562TvTEventEngine[TvTManager.TvTManager()]: Started.GameServer Started, free memory 312 Mb of 910 MbConnecting to login on 127.0.0.1:9014Maximum Numbers of Connected Players: 500Server Loaded in 99 secondsTelnet server is currently disabled.Registered on login as Server 1 : Bartz

log ;)
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Freezy/lag

Post by _DS_ »

GameServer Started, free memory 312 Mb of 910 Mb

Give server more memory.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
edawid
Posts: 8
Joined: Sat May 23, 2009 10:33 am

Re: Freezy/lag

Post by edawid »

Code: Select all

#!/bin/bash # exit codes of GameServer:#  0 normal shutdown#  2 reboot attempt while :; do	[ -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"	java -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1	[ $? -ne 2 ] && break#	/etc/init.d/mysql restart	sleep 10done 
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Freezy/lag

Post by _DS_ »

1G for server - too low. Use 1536 at least.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
edawid
Posts: 8
Joined: Sat May 23, 2009 10:33 am

Re: Freezy/lag

Post by edawid »

Serwer Onnline :

Code: Select all

/$ free -m             total       used       free     shared    buffers     cachedMem:          3355       2268       1086          0          0          0-/+ buffers/cache:       2268       1086Swap:            0          0          0
When

Code: Select all

java -Xms2048m -Xmx2048m -cp ./../libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1
dedicated server hangs

How much will I need to buy RAM , To enable the server and Geo
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Freezy/lag

Post by _DS_ »

Use search and install 64-bit os and java.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
edawid
Posts: 8
Joined: Sat May 23, 2009 10:33 am

Re: Freezy/lag

Post by edawid »

I've

Code: Select all

 Linux version 2.6.18-12-fza-amd64 (tsd@debian.systs.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Sun May 18 09:57:08 UTC 2008 
search install 64-bit os and java
nothing found;)

http://l2jserver.com/old-forum/thread.p ... adid=29813 ;/

I am a noob , i know xP
edawid
Posts: 8
Joined: Sat May 23, 2009 10:33 am

Re: Freezy/lag

Post by edawid »

_DS_ wrote:GameServer Started, free memory 312 Mb of 910 Mb

Give server more memory.
Ok fix plz topic closed
Post Reply