java vm stderr Failed to initialize in AIX - memory-management

when I typed java -Xms2M in AIX ,but I got this kind information , the java version is IBM java 1.6.0
JVMJ9GC020E -Xms too large for heap
JVMJ9VM015W Initialization error for library j9gc24(2): Failed to initialize
Could not create the Java virtual machine.
I am sure the machine has enough memory, it has 63232MB , so I don't know how to fix it. who know how to fix it ? Thank you .George

we missed some system environment properties ,so it caused this error. now it fixed .

Related

System.AccessViolationException inside windows docker container

I am running a 3d-modeling software inside a windows docker container.
In the process of a simple run, i get an exception:
Unhandled exception. (thread: (Id=2, background)) (System.AccessViolationException) Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I have tried building from different base images to be able to run the docker in isolation=process, which I have seen suggested on threads before. I am now running off mcr.microsoft.com/windows:2004 on a windows 10 21H2 version.
Is there anyone recognizing this? If so any help would be highly appreciated.

compiling FMU with Jmodelica

I have a problem compiling FMU's in Jmodelica. for a medium size model I get the following error.
I already chanded the runtime parameter of JAVA in control panel and also tired setting the JVM allocated memory as high as possible using Xmx command. I'm running it on a pc with 128GB RAM.
Does anyone know how can I solve this issue in Jmodelica?
The JVM that is being used from JModelica does not take into account the system settings for the JAVA runtime parameter. You'll need to set it in the compile_fmu command. I.e.
compile_fmu(...., jvm_args="-Xmx10g")

Not able to start Elastic Search in Linux VM

I am trying to install elastic search in Linux VM but could not able to start the service though it has java installed. I am getting following message while elasticsearch script runs.
[xxxx#ABCWCW0ASMGNJ01A bin]$ java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (novell-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
[xxxx#ABCWCW0ASMGNJ01A bin]$ ./elasticsearch
Error occurred during initialization of VM
Too small initial heap for new size specified
I have downlaoded 2.3.2 from elastic search website. After initial google I did set the ES_HEAP_SIZE=1g in bash_profile but still no luck. Can you thow some light what could be issue.
Thanks
It seems you don't have enough heap space to start elastic. Please go to increase the java heap size permanently? and do the needful.
Depending on the flavor of Linux you are using, you may need to use a text editor to update the following file to increase the heap size.
/etc/sysconfig/elasticsearch
(uncomment the line 'ES_HEAP_SIZE=' and set this to half of the allocated virtual RAM for the VM)--Based on: https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html
I will caution you to read this as well afterwards if you see something like "Unable to lock JVM memory" in your elasticsearch application log after starting it up:
https://github.com/elastic/elasticsearch/issues/9357
I ran into problems myself with trying to use the environment variable method on Centos 6 and 7.
You may also want to try using the Kopf plugin (open source) to get some simple visibility:
https://github.com/lmenezes/elasticsearch-kopf
Using the following general instructions of course:
https://www.elastic.co/guide/en/elasticsearch/plugins/current/installation.html
If you don't know where certain things are located for elasticsearch on your system, please use the below defaults listing as guidance:
https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-dir-layout.html
The root cause of the problem you are experiencing is most likely related to the startup script being used to bring up your instance of elasticsearch on the VM and it not utilizing the environment variable as expected. I hope you don't mind the extra information, I'm just trying to help you save some time.

JMC Flight Recorder is not working

I Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) deployed on Linux box. I am able to run Java Mission control (JMC) however I am not able to run "Flight Recorder" from the JMC. I am getting a popup with this message :
Commercial features are not enabled. In JDK7u4 and above, the JVM must be started with -XX:+UnlockCommercialFeatures -XX:+FlightRecorder.
I checked my jmc.ini file which resides in the same $JAVA_HOME/bin directory as JMC application itself and it has these two flags :
-XX:+UnlockCommercialFeatures
-XX:+FlightRecorder
What could be the problem with the Flight Recorder?
thank you in advance.
Those parameters you need to add to the JVM you wish to start recordings on. (They are already added for JMC itself, since we want people to be able to record the JMC client, should it be needed for support reasons. As a matter of fact, more recent versions of the JMC are always starting with a recording running. That way, even if the JVM crashes, there is always information about what was going on in the runtime.)
Simply add the parameters to the start-up of the JVM you wish to do recordings on. Here is more info:
http://hirt.se/blog/?p=370
If it fails to connect to the JMC application itself, it's strange. Otherwise, you must add the command line parameters to JVM you want to monitor.

JWrapper How Does The Memory Work?

I'm after a bit of info on how JWrapper uses memory on the client. We've got a 3rd party app that we're running through JWrapper. Before moving to JWrapper we had issues with memory leaks so we previously set the runtime memory parameter to Xmx256m in the deployment file. Can I specify how much memory to use in JWrapper?
I genuinely have tried to find this out myself but I can't find anything on the web. I didn't have any choice about getting JWrapper; it just happened to me one day hence I haven't really got much of an idea about it.
Thanks, :)
You can set the jvm options in your jwrapper XML config file including -Xmx256m etc, the following sample XML file has an example -Xmx option:
http://www.jwrapper.com/sample-app-xml.html

Resources