100% CPU usage, JVM error ‘OutOfMemoryError : GC overhead limit exceeded’

ERROR [qtp1916884627-21184] *UNKNOWN org.sonatype.nexus.repository.storage.LastDownloadedHandler - Failed to update last downloaded time for request /get-caller-file/-/get-caller-file-2.0.5.tgz
com.orientechnologies.orient.core.exception.OJVMErrorException: JVM error ‘OutOfMemoryError : GC overhead limit exceeded’ occurred during data processing, storage is switched to ‘read-only’ mode. To prevent this exception please restart the JVM and check data consistency by calling of ‘check database’ command from database console.
DB name=“component”