Disconnect every half hour.

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
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Disconnect every half hour.

Post by tukune »

lag each 20 minute on my poor server if "RestoreOffliners = true". this is patch.

Code: Select all

    public L2GameClient(MMOConnection<L2GameClient> con)    {        super(con);        _state = GameClientState.CONNECTED;        _connectionStartTime = System.currentTimeMillis();        _crypt = new GameCrypt();        _stats = new ClientStats();                _packetQueue = new ArrayBlockingQueue<>(Config.CLIENT_PACKET_QUEUE_SIZE);                if (Config.CHAR_STORE_INTERVAL > 0)        {-           _autoSaveInDB = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoSaveTask(), 300000L, (Config.CHAR_STORE_INTERVAL * 60000L));+           _autoSaveInDB = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoSaveTask(), Rnd.get(300000L, 300000L + Config.CHAR_STORE_INTERVAL * 60000L), (Config.CHAR_STORE_INTERVAL * 60000L));        }
User avatar
DareStrike
Posts: 376
Joined: Sun May 01, 2011 1:20 pm

Re: Disconnect every half hour.

Post by DareStrike »

what to what. java should add
will reduce the Disconnect ?
maxstyleboy
Posts: 183
Joined: Thu Jul 15, 2010 12:26 am

Re: Disconnect every half hour.

Post by maxstyleboy »

DareStrike wrote:what to what. java should add
will reduce the Disconnect ?

:roll:
maxstyleboy
Posts: 183
Joined: Thu Jul 15, 2010 12:26 am

Re: Disconnect every half hour.

Post by maxstyleboy »

The problem persists! the version L2j Freya i did not have this problem.

I'm waiting help, but I think nobody knows solve problem.

Many are having the same problem.


:|
maxstyleboy
Posts: 183
Joined: Thu Jul 15, 2010 12:26 am

Re: Disconnect every half hour.

Post by maxstyleboy »

someone can help ?
taro87
Posts: 18
Joined: Mon Dec 10, 2012 12:37 pm

Re: Disconnect every half hour.

Post by taro87 »

JOJO wrote:lag each 20 minute on my poor server if "RestoreOffliners = true". this is patch.

Code: Select all

    public L2GameClient(MMOConnection<L2GameClient> con)    {        super(con);        _state = GameClientState.CONNECTED;        _connectionStartTime = System.currentTimeMillis();        _crypt = new GameCrypt();        _stats = new ClientStats();                _packetQueue = new ArrayBlockingQueue<>(Config.CLIENT_PACKET_QUEUE_SIZE);                if (Config.CHAR_STORE_INTERVAL > 0)        {-           _autoSaveInDB = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoSaveTask(), 300000L, (Config.CHAR_STORE_INTERVAL * 60000L));+           _autoSaveInDB = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoSaveTask(), Rnd.get(300000L, 300000L + Config.CHAR_STORE_INTERVAL * 60000L), (Config.CHAR_STORE_INTERVAL * 60000L));        }
How many players are playing on your Server?
maxstyleboy
Posts: 183
Joined: Thu Jul 15, 2010 12:26 am

Re: Disconnect every half hour.

Post by maxstyleboy »

taro87 wrote:
JOJO wrote:lag each 20 minute on my poor server if "RestoreOffliners = true". this is patch.

Code: Select all

    public L2GameClient(MMOConnection<L2GameClient> con)    {        super(con);        _state = GameClientState.CONNECTED;        _connectionStartTime = System.currentTimeMillis();        _crypt = new GameCrypt();        _stats = new ClientStats();                _packetQueue = new ArrayBlockingQueue<>(Config.CLIENT_PACKET_QUEUE_SIZE);                if (Config.CHAR_STORE_INTERVAL > 0)        {-           _autoSaveInDB = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoSaveTask(), 300000L, (Config.CHAR_STORE_INTERVAL * 60000L));+           _autoSaveInDB = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoSaveTask(), Rnd.get(300000L, 300000L + Config.CHAR_STORE_INTERVAL * 60000L), (Config.CHAR_STORE_INTERVAL * 60000L));        }
How many players are playing on your Server?

Code: Select all

Core\java\com\l2jserver\gameserver\network\L2GameClient.java:129: error: cannot find symbol    [javac]             _autoSaveInDB = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new AutoSaveTask(), Rnd.get(300000L, 300000L + Config.CHAR_STORE_INTERVAL * 60000L), (Config.CHAR_STORE_INTERVAL * 60000L));    [javac]                                                                                                            ^    [javac]   symbol:   variable Rnd    [javac]   location: class L2GameClient    [javac] Note: Some input files use or override a deprecated API.    [javac] Note: Recompile with -Xlint:deprecation for details.    [javac] 1 error
Post Reply