The error message says the JVM has run out of memory. When I see this I just add more ram to the VM and try again. I believe the start script specifies a -Xmx size of 1G? So your host needs enough ram to operate all its other services and still have the 1G available for the JVM to consume. (I've seen this on more than just graylog.)
You do not want your JVM using any swap space, it kills performance. On Fri, Nov 20, 2015 at 1:52 AM, Vinod chauhan <vkc.ad...@gmail.com> wrote: > guys need help getting error during starting graylog2 server service other > services started successfully. > > thanks in advance > > 2015-11-19 13:46:10,862 INFO : org.graylog2.plugin.system.NodeId - Node > ID: 7a1d3b93-c977-48cc-b069-8b4ea32cf79a > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space > at java.lang.reflect.Array.newArray(Native Method) > at java.lang.reflect.Array.newInstance(Array.java:70) > at java.util.Arrays.copyOf(Arrays.java:2245) > at java.util.Arrays.copyOf(Arrays.java:2219) > at org.mapdb.Volume$ByteBufferVol.tryAvailable(Volume.java:287) > at org.mapdb.Volume.ensureAvailable(Volume.java:49) > at org.mapdb.StoreWAL.replayLogFile(StoreWAL.java:837) > at org.mapdb.StoreWAL.<init>(StoreWAL.java:84) > at org.mapdb.DBMaker.extendStoreWAL(DBMaker.java:928) > at org.mapdb.DBMaker.makeEngine(DBMaker.java:722) > at org.mapdb.DBMaker.make(DBMaker.java:665) > at > org.graylog2.caches.DiskJournalCache.<init>(DiskJournalCache.java:95) > at > org.graylog2.caches.DiskJournalCache$Input.<init>(DiskJournalCache.java:67) > at > org.graylog2.bindings.providers.InputCacheProvider.get(InputCacheProvider.java:51) > at > org.graylog2.bindings.providers.InputCacheProvider.get(InputCacheProvider.java:35) > at > com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:55) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) > at > com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) > at com.google.inject.Scopes$1$1.get(Scopes.java:65) > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) > at > com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) > at > com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) > at > com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84) > at > com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) > at > com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) > at com.google.inject.Scopes$1$1.get(Scopes.java:65) > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) > at > com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) > at > com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) > 2015-11-20 10:38:56,009 DEBUG: org.graylog2.Main - Loading configuration > from config file: /etc/graylog2.conf > 2015-11-20 10:38:56,065 DEBUG: org.graylog2.Main - No rest_transport_uri > set. Using default [http://127.0.0.1:12900/]. > 2015-11-20 10:38:56,413 INFO : org.reflections.Reflections - Reflections > took 300 ms to scan 1 urls, producing 11 keys and 20 values > 2015-11-20 10:38:56,677 INFO : org.reflections.Reflections - Reflections > took 122 ms to scan 1 urls, producing 5 keys and 24 values > 2015-11-20 10:38:58,115 INFO : org.graylog2.plugin.system.NodeId - Node > ID: 7a1d3b93-c977-48cc-b069-8b4ea32cf79a > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space > at java.lang.reflect.Array.newArray(Native Method) > at java.lang.reflect.Array.newInstance(Array.java:70) > 2015-11-20 10:38:56,009 DEBUG: org.graylog2.Main - Loading configuration > from config file: /etc/graylog2.conf > 2015-11-20 10:38:56,065 DEBUG: org.graylog2.Main - No rest_transport_uri > set. Using default [http://127.0.0.1:12900/]. > 2015-11-20 10:38:56,413 INFO : org.reflections.Reflections - Reflections > took 300 ms to scan 1 urls, producing 11 keys and 20 values > 2015-11-20 10:38:56,677 INFO : org.reflections.Reflections - Reflections > took 122 ms to scan 1 urls, producing 5 keys and 24 values > 2015-11-20 10:38:58,115 INFO : org.graylog2.plugin.system.NodeId - Node > ID: 7a1d3b93-c977-48cc-b069-8b4ea32cf79a > Exception in thread "main" java.lang.OutOfMemoryError: Java heap space > at java.lang.reflect.Array.newArray(Native Method) > at java.lang.reflect.Array.newInstance(Array.java:70) > at java.util.Arrays.copyOf(Arrays.java:2245) > at java.util.Arrays.copyOf(Arrays.java:2219) > at org.mapdb.Volume$ByteBufferVol.tryAvailable(Volume.java:287) > at org.mapdb.Volume.ensureAvailable(Volume.java:49) > at org.mapdb.StoreWAL.replayLogFile(StoreWAL.java:837) > at org.mapdb.StoreWAL.<init>(StoreWAL.java:84) > at org.mapdb.DBMaker.extendStoreWAL(DBMaker.java:928) > at org.mapdb.DBMaker.makeEngine(DBMaker.java:722) > at org.mapdb.DBMaker.make(DBMaker.java:665) > at > org.graylog2.caches.DiskJournalCache.<init>(DiskJournalCache.java:95) > at > org.graylog2.caches.DiskJournalCache$Input.<init>(DiskJournalCache.java:67) > at > org.graylog2.bindings.providers.InputCacheProvider.get(InputCacheProvider.java:51) > at > org.graylog2.bindings.providers.InputCacheProvider.get(InputCacheProvider.java:35) > at > com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:55) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) > at > com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) > at com.google.inject.Scopes$1$1.get(Scopes.java:65) > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) > at > com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) > at > com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) > at > com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84) > at > com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) > at > com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) > at com.google.inject.Scopes$1$1.get(Scopes.java:65) > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) > at > com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) > at > com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) > > > > > -- > You received this message because you are subscribed to the Google Groups > "Graylog Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to graylog2+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/graylog2/e7663051-e63c-459b-bb49-041eeccefba9%40googlegroups.com > <https://groups.google.com/d/msgid/graylog2/e7663051-e63c-459b-bb49-041eeccefba9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- No matter what we think of Linux versus FreeBSD, etc., the one thing I really like about Linux is that it has Microsoft worried. Anything that kicks a monopoly in the pants has got to be good for something. - Chris Johnson -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to graylog2+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/CAL5rfGWHrPnB2H4geJGzB7QawdYhSdPGjACacJ2PsAUCQcHxqg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.