Version 4.0 used up all of my 2GB memory

smhhadima6 years ago

Hi,

I upgraded to version 4.0 and the memory usage become 95% (I was using V3.12 and everything were fine and only 10% of the memory is used.)
I am using ubuntu 18.04 on 2Gb / 1 core

what could be the problem?

Anton Tananaev6 years ago

Have you checked logs?

smhhadima6 years ago

Since this forum doesn't allow to post the whole log, I am posting parts of it:

FINEST|1502/0|Service traccar|18-08-10 00:00:06|WARNING: HK2 service reification failed for [org.glassfish.jersey.jaxb.internal.XmlCollectionJaxbProvider$General] with an exception:
FINEST|1502/0|Service traccar|18-08-10 00:00:06|MultiException stack 1 of 2
FINEST|1502/0|Service traccar|18-08-10 00:00:06|java.lang.NoClassDefFoundError: javax/xml/bind/PropertyException
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3090)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.lang.Class.getDeclaredConstructors(Class.java:2316)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1308)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.Utilities$3.run(Utilities.java:1304)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.security.AccessController.doPrivileged(Native Method)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.Utilities.getAllConstructors(Utilities.java:1304)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.Utilities.findProducerConstructor(Utilities.java:1247)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.DefaultClassAnalyzer.getConstructor(DefaultClassAnalyzer.java:83)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.inject.JerseyClassAnalyzer.getConstructor(JerseyClassAnalyzer.java:144)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.Utilities.getConstructor(Utilities.java:178)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ClazzCreator.initialize(ClazzCreator.java:129)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ClazzCreator.initialize(ClazzCreator.java:180)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SystemDescriptor.internalReify(SystemDescriptor.java:740)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SystemDescriptor.reify(SystemDescriptor.java:694)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:461)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.narrow(ServiceLocatorImpl.java:2288)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.access$1200(ServiceLocatorImpl.java:125)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl$9.compute(ServiceLocatorImpl.java:1373)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl$9.compute(ServiceLocatorImpl.java:1368)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl.compute(WeakCARCacheImpl.java:116)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetAllServiceHandles(ServiceLocatorImpl.java:1430)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServiceHandles(ServiceLocatorImpl.java:1355)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServiceHandles(ServiceLocatorImpl.java:1344)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.inject.Providers.getServiceHandles(Providers.java:354)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.inject.Providers.getProviders(Providers.java:187)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.message.internal.MessageBodyFactory.<init>(MessageBodyFactory.java:248)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(ReflectionHelper.java:1375)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ClazzCreator.createMe(ClazzCreator.java:272)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:366)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:83)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:71)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:122)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:774)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.getUnqualifiedService(ServiceLocatorImpl.java:786)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.IterableProviderImpl.get(IterableProviderImpl.java:111)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.client.RequestProcessingInitializationStage.apply(RequestProcessingInitializationStage.java:97)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.client.RequestProcessingInitializationStage.apply(RequestProcessingInitializationStage.java:67)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.process.internal.Stages$LinkedStage.apply(Stages.java:308)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:153)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:208)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.lang.Thread.run(Thread.java:844)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|Caused by: java.lang.ClassNotFoundException: javax.xml.bind.PropertyException
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    ... 63 more
FINEST|1502/0|Service traccar|18-08-10 00:00:06|MultiException stack 2 of 2
FINEST|1502/0|Service traccar|18-08-10 00:00:06|java.lang.IllegalArgumentException: Errors were discovered while reifying SystemDescriptor(
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    implementation=org.glassfish.jersey.jaxb.internal.XmlCollectionJaxbProvider$General
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    contracts={javax.ws.rs.ext.MessageBodyReader,javax.ws.rs.ext.MessageBodyWriter}
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    scope=javax.inject.Singleton
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    qualifiers={}
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    descriptorType=CLASS
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    descriptorVisibility=NORMAL
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    metadata=
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    rank=0
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    loader=org.glassfish.hk2.utilities.binding.AbstractBinder$2@93b9cb3
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    proxiable=null
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    proxyForSameScope=null
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    analysisName=null
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    id=59
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    locatorId=2
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    identityHashCode=889602027
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    reified=false)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SystemDescriptor.reify(SystemDescriptor.java:705)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:461)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.narrow(ServiceLocatorImpl.java:2288)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.access$1200(ServiceLocatorImpl.java:125)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl$9.compute(ServiceLocatorImpl.java:1373)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl$9.compute(ServiceLocatorImpl.java:1368)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.cache.internal.WeakCARCacheImpl.compute(WeakCARCacheImpl.java:116)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetAllServiceHandles(ServiceLocatorImpl.java:1430)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServiceHandles(ServiceLocatorImpl.java:1355)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServiceHandles(ServiceLocatorImpl.java:1344)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.inject.Providers.getServiceHandles(Providers.java:354)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.inject.Providers.getProviders(Providers.java:187)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.message.internal.MessageBodyFactory.<init>(MessageBodyFactory.java:248)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(ReflectionHelper.java:1375)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ClazzCreator.createMe(ClazzCreator.java:272)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:366)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:83)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:71)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:122)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:774)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.ServiceLocatorImpl.getUnqualifiedService(ServiceLocatorImpl.java:786)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.jvnet.hk2.internal.IterableProviderImpl.get(IterableProviderImpl.java:111)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.client.RequestProcessingInitializationStage.apply(RequestProcessingInitializationStage.java:97)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.client.RequestProcessingInitializationStage.apply(RequestProcessingInitializationStage.java:67)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.process.internal.Stages$LinkedStage.apply(Stages.java:308)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.process.internal.Stages.process(Stages.java:171)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:153)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:208)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
FINEST|1502/0|Service traccar|18-08-10 00:00:06|    at java.base/java.lang.Thread.run(Thread.java:844)
Anton Tananaev6 years ago

What Java version are you using? I would recommend to try Java 8.

smhhadima6 years ago
 java -version
openjdk version "10.0.1" 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)

should I down-grade?

Anton Tananaev6 years ago

Yes, absolutely. There are many known issues with Java 10.