This content has been marked as final. Show 5 replies
I assume you have checked into the obvious issue, which is lack of memory. Which version of Java do you have installed? Are you able to run other Java executables on the machine?
I am running virtual machine to which 4.3 GB is assigned.
[root@host1 ~]# free
total used free shared buffers cached
Mem: 3107668 679096 2428572 0 55644 500712
-/+ buffers/cache: 122740 2984928
Swap: 3068372 0 3068372
$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)
Now , any idea? What can be issue?
Two things come to mind:
(1). According to the contents of awmrun.sh (shown below) version 1.5 or 1.6 of Java is needed.
(2). The maximum heap size by default is set to 1 GB. You can reduce it and see if that resolves your memory problem.
BTW ... you don't have to run AWM inside your VM. I generally run AWM outside VM (like in my Windows-7) , and connect it to DB running inside VM. That way I don't unnecessarily use the limited RAM that is assigned to VM. Client tools can be (and should be) used outside of VM.
*# Modify the JRE_ROOT environment variable to the directory location of your installed Java Run-time Environment*
*# Make sure your environment has at least JRE version 1.5 installed*
*# JRE version 1.6 is also supported*
*#$JAVA_RT -mx1024m -jar awm188.8.131.52.0A.jar*
java -mx1024m -jar awm184.108.40.206.0A.jar
$rpm -qa|grep jre
I have jre-1.6 installed. Now,
$ rpm -qa|grep jre
shows that it is installed in /usr/java
Now, as a root user
returns the same error.
GC Warning: Out of Memory! Returning NIL!
Exception in thread "AppInitialisationThread" java.lang.OutOfMemoryError
<<No stacktrace available>>
You can run AWM in your Windows environment and connect it to database (in VM).
Any reason, Why you have to use AWM in unix ?
It is just a client tool.