JBoss ON installation fails with java.lang.OutOfMemoryError
While installing JBoss ON 3.3 I'm getting the following error:
11:08:32,079 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/update/0003.xml
11:08:32,084 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/update/0003.xml
11:08:32,087 INFO [org.rhq.cassandra.schema.VersionManager] Storage schema update schema/update/0003.xml applied.
11:08:32,088 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/update/0004.xml
Exception in thread "metrics-meter-tick-thread-1" java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:713)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1017)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1163)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Exception in thread "metrics-meter-tick-thread-1" java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:713)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:949)
at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1017)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1163)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
11:08:55,612 INFO [org.rhq.server.control.command.Install] Still waiting for server to start...
11:09:25,836 INFO [org.rhq.server.control.command.Install] Still waiting for server to start...
11:09:56,046 INFO [org.rhq.server.control.command.Install] Still waiting for server to start...
Responses
Ok, looks good. How much RAM do you have? We have installed on VM with 2 vCPUs and 8GB RAM, even if the minimum is only 2GB
This is the same part of the installation as shown in the log on our system:
11:45:21,211 INFO [org.rhq.cassandra.schema.VersionManager] Preparing to check storage schema compatibility.
11:45:21,410 INFO [org.rhq.cassandra.schema.VersionManager] Completed storage schema compatibility check.
11:45:21,410 INFO [org.rhq.enterprise.server.installer.InstallerServiceImpl] Storage user does not exist. Installing Storage Cluster schema along with updates to storage nodes.
11:45:21,411 INFO [org.rhq.cassandra.schema.VersionManager] Preparing to install storage schema
11:45:21,411 INFO [org.rhq.cassandra.schema.AbstractManager] Shutting down existing cluster connections
11:45:21,427 INFO [org.rhq.cassandra.schema.AbstractManager] Shutting down existing cluster connections
11:45:22,199 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/create/0001.xml
11:45:22,892 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/create/0001.xml
11:45:22,893 INFO [org.rhq.cassandra.schema.AbstractManager] Shutting down existing cluster connections
11:45:23,335 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/create/0002.xml
11:45:23,450 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/create/0002.xml
11:45:23,483 INFO [org.rhq.cassandra.schema.VersionManager] Installed storage schema version is 0
11:45:23,484 INFO [org.rhq.cassandra.schema.VersionManager] Required storage schema version is 7
11:45:23,484 INFO [org.rhq.cassandra.schema.VersionManager] Storage schema requires udpates. Updating from version 0 to version 7.
11:45:23,484 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/update/0001.xml
11:45:24,120 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/update/0001.xml
11:45:24,122 INFO [org.rhq.cassandra.schema.VersionManager] Storage schema update schema/update/0001.xml applied.
11:45:24,122 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/update/0002.xml
11:45:24,571 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/update/0002.xml
11:45:24,573 INFO [org.rhq.cassandra.schema.VersionManager] Storage schema update schema/update/0002.xml applied.
11:45:24,573 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/update/0003.xml
11:45:24,575 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/update/0003.xml
11:45:24,577 INFO [org.rhq.cassandra.schema.VersionManager] Storage schema update schema/update/0003.xml applied.
11:45:24,578 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/update/0004.xml
11:45:24,689 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/update/0004.xml
11:45:24,691 INFO [org.rhq.cassandra.schema.VersionManager] Storage schema update schema/update/0004.xml applied.
11:45:24,691 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/update/0005.xml
11:45:24,722 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Migrating aggregate metrics for 0 schedule ids
11:45:24,722 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Migrating one_hour data for 0 schedules
11:45:24,724 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Finished migrating one_hour data
11:45:24,724 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Migrating six_hour data for 0 schedules
11:45:24,724 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Finished migrating six_hour data
11:45:24,724 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Migrating twenty_four_hour data for 0 schedules
11:45:24,725 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Finished migrating twenty_four_hour data
11:45:24,725 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Finished aggregate metrics migration in 0 seconds
11:45:24,728 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Dropping table one_hour_metrics
11:45:24,871 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Dropping table six_hour_metrics
11:45:24,970 INFO [org.rhq.cassandra.schema.MigrateAggregateMetrics] Dropping table twenty_four_hour_metrics
11:45:25,062 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/update/0005.xml
11:45:25,064 INFO [org.rhq.cassandra.schema.VersionManager] Storage schema update schema/update/0005.xml applied.
11:45:25,064 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/update/0006.xml
11:45:25,140 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/update/0006.xml
11:45:25,141 INFO [org.rhq.cassandra.schema.VersionManager] Storage schema update schema/update/0006.xml applied.
11:45:25,141 INFO [org.rhq.cassandra.schema.AbstractManager] Applying update file: schema/update/0007.xml
11:45:25,207 INFO [org.rhq.cassandra.schema.ReplaceIndex] Preparing to replace metrics_index
11:45:25,213 INFO [org.rhq.cassandra.schema.ReplaceRHQ411Index] Updating raw index
11:45:25,304 INFO [org.rhq.cassandra.schema.ReplaceRHQ411Index] Updating one_hour index
11:45:25,328 INFO [org.rhq.cassandra.schema.ReplaceRHQ411Index] Updating six_hour index
11:45:25,334 INFO [org.rhq.cassandra.schema.ReplaceRHQ411Index] Dropping table metrics_index
11:45:25,430 INFO [org.rhq.cassandra.schema.AbstractManager] Applied update file: schema/update/0007.xml
11:45:25,431 INFO [org.rhq.cassandra.schema.VersionManager] Storage schema update schema/update/0007.xml applied.
11:45:25,437 INFO [org.rhq.cassandra.schema.TopologyManager] Applying topology updates...
11:45:25,438 INFO [org.rhq.cassandra.schema.TopologyManager] Starting to execute UpdateReplicationFactor task.
11:45:25,439 INFO [org.rhq.cassandra.schema.TopologyManager] No need to update replication factor. Replication factor already 1
11:45:25,442 INFO [org.rhq.cassandra.schema.TopologyManager] Successfully executed UpdateReplicationFactor task.
11:45:25,442 INFO [org.rhq.cassandra.schema.TopologyManager] Starting to execute UpdateGCGrace task.
11:45:25,831 INFO [org.rhq.cassandra.schema.TopologyManager] Updated gc_grace_seconds to 0
11:45:25,832 INFO [org.rhq.cassandra.schema.TopologyManager] Successfully executed UpdateGCGrace task.
Could you please check the following solution: Java java.lang.OutOfMemoryError "unable to create new native thread" or "Failed to create a thread".
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
