Exception in thread "main" java.lang.OutOfMemoryError

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
mersinliali
Posts: 6
Joined: Thu Dec 15, 2011 9:42 am

Exception in thread "main" java.lang.OutOfMemoryError

Post 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...
User avatar
regenx
Posts: 319
Joined: Sat Jul 17, 2010 6:55 am

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

Post 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.
User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

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

Post by nonom »

regenx wrote:Lineage 2 on VPS ?! LoL
Yes, but depending of what VPS
Image
"There are three kinds of people in this world, those who can count and those who can't"
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

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

Post 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?
User avatar
regenx
Posts: 319
Joined: Sat Jul 17, 2010 6:55 am

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

Post 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.
Post Reply