Projects tigase _server server-core Issues #864
OOM after startup (#864)
Closed
wojciech.kapcia@tigase.net opened 7 years ago

On commit: 498191e6 after a couple of minutes after starting up the server I get following

2017-07-19 10:57:31.156 [main]             ThreadExceptionHandler.uncaughtException()  SEVERE: Uncaught thread: "main" exception
java.lang.OutOfMemoryError: unable to create new native thread
	at java.lang.Thread.start0(Native Method)
	at java.lang.Thread.start(Thread.java:717)
	at java.util.Timer.<init>(Timer.java:176)
	at java.util.Timer.<init>(Timer.java:146)
	at tigase.xmpp.impl.TokenBucketPool.<init>(TokenBucketPool.java:15)
	at sun.reflect.GeneratedConstructorAccessor74.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at tigase.component.DSLBeanConfigurator.lambda$dumpConfiguration$1(DSLBeanConfigurator.java:209)
	at tigase.kernel.core.Kernel.getInstanceIfExistsOr(Kernel.java:413)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:207)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:204)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:204)

…
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:204)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:204)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:204)
	at tigase.component.DSLBeanConfigurator.dumpConfiguration(DSLBeanConfigurator.java:181)
	at tigase.server.Bootstrap.start(Bootstrap.java:173)
	at tigase.server.XMPPServer.start(XMPPServer.java:136)
	at tigase.server.XMPPServer.main(XMPPServer.java:117)

Andrzej Wójcik (Tigase) commented 7 years ago

I was not able to replicate this issue. I've identified a usage of Timer in TokenBucketPool which should be done differently in Tigase Kernel based environment and I've changed this code.

wojciech.kapcia@tigase.net commented 7 years ago

Can't reproduce anymore, closing.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
5831
Version
tigase-server-8.0.0
Spent time
7h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#864
Please wait...
Page is in error, reload to recover