Page 1 of 1

Exception in thread "main" java.lang.OutOfMemoryError

Posted: Fri Dec 30, 2011 4:30 pm
by mersinliali
L2J Revision Number: 5114
L2JDP Revision Number: 8604

We have purchased a VPS service:
# lshw

description: Computer
width: 64 bits
*-core
description: Motherboard
physical id: 0
*-memory
description: System memory
physical id: 0
size: 2GiB
*-cpu:0
product: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
vendor: Intel Corp.
physical id: 1
bus info: cpu@0
width: 64 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp x86-64 constant_tsc ida nonstop_tsc pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm
*-cpu:1
product: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
vendor: Intel Corp.
physical id: 2
bus info: cpu@1
width: 64 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp x86-64 constant_tsc ida nonstop_tsc pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm
*-cpu:2
product: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
vendor: Intel Corp.
physical id: 3
bus info: cpu@2
width: 64 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp x86-64 constant_tsc ida nonstop_tsc pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm
*-cpu:3
product: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
vendor: Intel Corp.
physical id: 4
bus info: cpu@3
width: 64 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp x86-64 constant_tsc ida nonstop_tsc pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm
Debian 6 is installed (amd64 arch.).
The latest java (7u2) is installed.

We have compiled the latest branch of INTERLUDE in server with ant builder. Everything works fine to that point. Login server stats well.

But,

game server cannot start with the error in stdout.log that:
loading gameserver config
MLog clients using java 1.4+ standard logging.
Initializing c3p0-0.9.2-pre1 [built 27-May-2010 01:00:49 -0400; debug? true; trace: 10]
Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:691)
at java.util.Timer.<init>(Timer.java:176)
at java.util.Timer.<init>(Timer.java:146)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.poolsInit(C3P0PooledConnectionPoolManager.java:139)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.<init>(C3P0PooledConnectionPoolManager.java:262)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getPoolManager(AbstractPoolBackedDataSource.java:508)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at net.sf.l2j.L2DatabaseFactory.<init>(L2DatabaseFactory.java:100)
at net.sf.l2j.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:173)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:719)
Java HotSpot(TM) 64-Bit Server VM warning: Attempt to allocate stack guard pages failed.

What is wrong? Any considerations will be well accepted.

Sincerely...

Re: Exception in thread "main" java.lang.OutOfMemoryError

Posted: Thu Mar 15, 2012 10:51 pm
by regenx
Lineage 2 on VPS ?! LoL

You need DS = Dedicated server and not VPS = Virtual Private Server
Because you need full CPU and more than 2 GB of RAM (NO Virtualization lol).
Try to modify ram limits in java cfg.

Re: Exception in thread "main" java.lang.OutOfMemoryError

Posted: Thu Mar 15, 2012 11:10 pm
by nonom
regenx wrote:Lineage 2 on VPS ?! LoL
Yes, but depending of what VPS

Re: Exception in thread "main" java.lang.OutOfMemoryError

Posted: Thu Mar 15, 2012 11:47 pm
by JMD
nonom wrote:
regenx wrote:Lineage 2 on VPS ?! LoL
Yes, but depending of what VPS
Are there vsp servers suitable for l2j? Can you please provide more info?

Re: Exception in thread "main" java.lang.OutOfMemoryError

Posted: Tue Mar 20, 2012 2:34 pm
by regenx
nonom wrote:
regenx wrote:Lineage 2 on VPS ?! LoL
Yes, but depending of what VPS
Nobody can give you virtualization for host a Lineage 2 server... damn to expensive.