Weblogic Server insufficient memory :Native memory allocation (malloc) failed to allocate 32784 bytes for Chunk::new

        In this topic we are going to discuss on how to resolve "insufficient memory :Native memory allocation (malloc) failed to allocate 32784 bytes for Chunk::new" error in Weblogic Server start up of Oracle SOA 12c instance. Please follow the step by step process as mentioned below.



Related Questions/Queries :
  • Oracle Weblogic SOA 12c Server is not starting.
  • Java Native memory allocation error in Oracle Weblogic Server.
  • Java insufficient memory error in Oracle Weblogic.
  • Oracle SOA 12c Out Of Memory Error.
Description of Use case :
  • Weblogic server is not starting due to "insufficient memory :Native memory allocation (malloc) failed to allocate 32784 bytes for Chunk::new" error.
Error Details :

Jun 27, 2020 4:07:56 PM oracle.security.jps.wls.JpsBootStrapService start
INFO: JPS bootstrap service started.
<Jun 27, 2020 4:07:56 PM GMT> <Info> <RCM> <BEA-2165021> <"ResourceManagement" is not enabled in this JVM. Enable "ResourceManagement" to use the WebLogic Server "Resource Consumption Management" feature. To enable "ResourceManagement", you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.>
Jun 27, 2020 4:07:56 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory validateFileLocation
INFO: JPS Config: C:\INSTAL~1\SOA_12c\Oracle\MIDDLE~1\ORACLE~1\USER_P~1\domains\BASE_D~1\config\fmwconfig\jps-config.xml
<Jun 27, 2020 4:07:57 PM GMT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.2.1.4.0 Thu Sep 12 04:04:29 GMT 2019 1974621>

[error occurred during error reporting (null), id 0xc0000005]

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 32784 bytes for Chunk::new
# An error report file with more information is saved as:
# C:\Installation\SOA_12c\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\hs_err_pid3768.log
#
# Compiler replay data is saved as:
# C:\Installation\SOA_12c\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\replay_pid3768.log
Stopping Derby server...
Derby server stopped.

Solution :

1.Take the backup of startWeblogic.sh file of your Oracle SOA 12c instance.

2. Add below parameters in startWeblogic.sh file.

set JAVA_OPTIONS="${JAVA_OPTIONS} -XX:CodeCacheMinimumFreeSpace=2M -XX:ReservedCodeCacheSize=64M"

[ Try to put some higher size ie. 2M,64M]

This way you can resolve the 'Native memory allocation (malloc)error in your Oracle Weblogic SOA 12c instance.Feel free to post your comments/suggestions/queries. I shall be happy to respond to those. 

Thank You . Happy Learning !!

Weblogic Server insufficient memory :Native memory allocation (malloc) failed to allocate 32784 bytes for Chunk::new Weblogic Server insufficient memory :Native memory allocation (malloc) failed to allocate 32784 bytes for Chunk::new Reviewed by Technophile-SOA-OIC Blog on June 30, 2020 Rating: 5

No comments:

Comment

Powered by Blogger.