I just installed Aptana Studio 3.4.2 on a fresh install of Linux Mint 16 with Oracle java. The program closes unexpectedly. So far I've only used it with the Python perspective active. It seems to happen more often when I'm editing an html file. I used it for 3 hours one day before it crashed; other times only 10 minutes.
The log file has a recurring error that may be related but I can't find any info on it:
!MESSAGE Invalid preference page path: XML Syntax.
Does anyone know what is causing this?
Java Version:
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
Aptana Diagnostic:
Host OS: Linux
OS Version: 3.11.0-12-generic
OS Arch: x86_64
JRE Version: 1.7.0_45
JRE Vendor: Oracle Corporation
JRE Home: /opt/java/jdk1.7.0_45/jre
Aptana Studio 3 Version: 3.4.2.201308081805
Install Directory: file:/opt/Aptana_Studio_3/
Workspace Directory: file:/home/jeff/workspace/
VM Arguments: -Xms40m
-Xmx512m
-Declipse.p2.unsignedPolicy=allow
-Declipse.log.size.max=10000
-Declipse.log.backup.max=5
-Djava.awt.headless=true
-XX:MaxPermSize=256m
-jar
/opt/Aptana_Studio_3//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
Language: en_US
Node.JS Version: Not installed
NPM Path: Not installed
ENV:
MDMSESSION=default
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-ka4Jsn
SHLVL=1
SSH_AGENT_PID=1662
TEXTDOMAINDIR=/usr/share/locale/
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
GDM_XSERVER_LOCATION=local
SESSION_MANAGER=local/jeff-main:#/tmp/.ICE-unix/1585,unix/jeff-main:/tmp/.ICE-unix/1585
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
CLUTTER_DISABLE_XINPUT=1
GDMSESSION=default
XDG_SESSION_COOKIE=812a644561ed637b3aa6135652bf871c-1389232561.233987-1413464634
XDG_DATA_DIRS=/usr/share/default:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
MANDATORY_PATH=/usr/share/gconf/default.mandatory.path
PWD=/home/jeff
GIO_LAUNCHED_DESKTOP_FILE=/home/jeff/Desktop/AptanaStudio3.desktop
MDM_XSERVER_LOCATION=local
LOGNAME=jeff
GPG_AGENT_INFO=/run/user/1000/keyring-ka4Jsn/gpg:0:1
GIO_LAUNCHED_DESKTOP_FILE_PID=3387
SSH_AUTH_SOCK=/run/user/1000/keyring-ka4Jsn/ssh
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
TEXTDOMAIN=im-config
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-9GHbJcIE3A,guid=4d478335c530a3bf45ec18fb52ce01b1
SHELL=/bin/bash
GNOME_KEYRING_PID=1509
XDG_CURRENT_DESKTOP=GNOME
XDG_CONFIG_DIRS=/etc/xdg/xdg-default:/etc/xdg
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
DESKTOP_SESSION=default
APTANA_VERSION=3.4.2.1368863613
DISPLAY=:0.0
USER=jeff
HOME=/home/jeff
XAUTHORITY=/home/jeff/.Xauthority
XDG_SEAT=seat0
WINDOWPATH=8
XDG_SESSION_ID=c1
DEFAULTS_PATH=/usr/share/gconf/default.default.path
MDM_LANG=en_US.UTF-8
USERNAME=jeff
XDG_VTNR=8
XDG_RUNTIME_DIR=/run/user/1000
LANG=en_US.UTF-8
I Had the same problem with PHP. I found out that the program terminate when I hover my mouse over an object. So far so good after disabling the hover.
To disable: Window -> Preferences -> Content Assist -> Show information on hover: off
Try add
-Dorg.eclipse.swt.browser.DefaultType=mozilla
in AptanaStudio3.ini
Eclipse continue crashing
open AptanaStudio3.ini and append this line to end of file:
-Dorg.eclipse.swt.browser.DefaultType=mozilla
Try install Xterm and open again.
Related
I have a 64-bit processor and windows 8.And when i am opening my Android studio an error dialog box shows, written as "Failed to create JVM,JVM path:C:\Program Files\Java\jdk1.7.0_25\jre if you have already have 64 bit JDK instaled,define a JAVA_HOME variable in your computer"
Go to C:\Program Files\Android\Android Studio\bin\studio.exe.vmoptions
open in notpad
-Xmx512m to -Xmx256m
-XX:MaxPermSize=250m to -XX:MaxPermSize=128m
Or change:
-Xmx750m to -Xmx512m
-XX:MaxPermSize=350m to -XX:MaxPermSize=250m
I'm getting the following error when starting TOMEE plus 1.7.2:
/home/atom/tomee-apps/boss/bin/catalina.sh: line 392: /opt/oracle/jdk/jdk1.8.0_60/jre
/bin/java: No such file or directory
If I do below from console, it works, which means that the java file does exist:
[atom#ustxplmadevapp1 bin]$ /opt/oracle/jdk/jdk1.8.0_60/jre/bin/java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
The startup.sh console output is like below:
[atom#ustxplmadevapp1 bin]$ ./startup.sh
Using CATALINA_BASE: /home/atom/tomee-apps/boss
Using CATALINA_HOME: /home/atom/tomee-apps/boss
Using CATALINA_TMPDIR: /home/atom/tomee-apps/boss/temp
Using JRE_HOME: /opt/oracle/jdk/jdk1.8.0_60/jre
Using CLASSPATH: /home/atom/tomee-apps/boss/bin/bootstrap.jar:/home/atom/tomee-apps/boss/bin/tomcat-juli.jar
Using CATALINA_PID: /var/apps/apache-tomee-plus-1.7.2/boss/tomcat.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.
The setenv.sh is as of below:
JRE_HOME="/opt/oracle/jdk/jdk1.8.0_60/jre"
CATALINA_PID="/var/apps/apache-tomee-plus-1.7.2/boss/tomcat.pid"
Any idea why I'm getting such error? I've notice that the error always has a line break between /opt/oracle/jdk/jdk1.8.0_60/jre and /bin/java. Not sure if that is the cause of what.
when i try to deploy my project using MFP CLI it gives the following error
xxxx-Macmini:Nauth user-x$ mfp build
App Nauth was successfully built.
xxxx-Macmini:Nauth user-x$ mfp deploy
Initializing MobileFirst Console
Error: The MobileFirst server that you have configured does not appear to be running. Start the server with 'mobilefirst start'.
mfp info
xxxx-Macmini:Nauth user-x$ mfp info OS: darwin x64 Release: 11.4.2
System Memory: 128 MB free out of 4096 MB Node: v0.10.30 MobileFirst
CLI: 7.0.0.00.20150610-1400 Current directory:
/Volumes/Development/wlsamples/NAuth2/apps/Nauth
Current project: /Volumes/Development/wlsamples/NAuth2
Adapter: SqlAuth
(/Volumes/Development/wlsamples/NAuth2/adapters/SqlAuth/SqlAuth.xml)
Description: SqlAuth Type: sql Procedures: readuser,
submitAuthentication, getBalance
Application: Nauth
(/Volumes/Development/wlsamples/NAuth2/apps/Nauth/application-descriptor.xml)
Description: Nauth Type: hybrid application Features: Environments:
iphone Skins:
Server location:
/Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server Server
binary:
/Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server/wlp/bin/server
MobileFirst instance:
/Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server/wlp/usr/servers/worklight
objc[26232]: Class JavaLaunchHelper is implemented in both
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/bin/java
and
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/libinstrument.dylib.
One of the two will be used. Which one is undefined. WebSphere
Application Server 8.5.5.4 (1.0.7.cl50420141121-1414) on Java
HotSpot(TM) 64-Bit Server VM, version 1.8.0_45-b14 (en_US)
Environment variables: TERM_PROGRAM: Apple_Terminal rvm_bin_path:
/Users/user-x/.rvm/bin TERM: xterm-256color SHELL: /bin/bash TMPDIR:
/var/folders/0m/ftx97h0n1rbcdwb3b3sv18lm0000gn/T/
Apple_PubSub_Socket_Render: /tmp/launch-pbGaeh/Render
TERM_PROGRAM_VERSION: 303.2 TERM_SESSION_ID:
8CB82941-523E-4034-BCA0-470F186ED261 USER: user-x COMMAND_MODE:
unix2003
_system_type: Darwin rvm_path: /Users/user-x/.rvm SSH_AUTH_SOCK: /tmp/launch-n9tSIx/Listeners
__CF_USER_TEXT_ENCODING: 0x1F5:0:0 Apple_Ubiquity_Message: /tmp/launch-bCTtmF/Apple_Ubiquity_Message WEBWORKS_HOME:
/Applications/BB10 WebWorks SDK 2.2.0.15 rvm_prefix: /Users/user-x
PATH: /Applications/BB10 WebWorks SDK 2.2.0.15:/Applications/BB10
WebWorks SDK
2.2.0.15/cordova-blackberry/bin/dependencies/bb-tools/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Applications/IBM/MobileFirst-CLI:/Users/user-x/.rvm/bin
PWD: /Volumes/Development/wlsamples/NAuth2/apps/Nauth JAVA_HOME:
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
_system_arch: i386
_system_version: 10.7 rvm_version: 1.26.11 (latest) SHLVL: 2 HOME: /Users/user-x LOGNAME: user-x LC_CTYPE: UTF-8 DISPLAY:
/tmp/launch-BI7HzF/org.x:0
_system_name: OSX
_: /Applications/IBM/MobileFirst-CLI/IBMnode/bin/node WLP_USER_DIR: /Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server/wlp/usr
Java home is set properly xxxx-Macmini:Nauth
user-x$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
MobileFirst Platform Foundation does not support Java 8 - you may only use Java 6 or 7.
After doing (1), also uninstall the CLI (/Applications/IBM/MobileFirst-CLI/Uninstaller) and download the latest available iFix from IBM Fix Central which contains several bug fixes for the CLI, including a potential fix for the server mentioned in the question.
Currently we are encountering an problem, our java application can run smoothly with JRE6, but for JRE7, it will report "Could not create the Java virtual machine" sometimes and failed to start program. we have "-Xmx1024m" option in the launch command line.
after searching in google, people suggest check the max heap size that can be requested in PC. then I tried below ones.
for JRE6,
C:\Users\joey>java -Xmx1214m -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode)
C:\Users\joey>java -Xmx1215m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
for JRE7,
D:\Program Files\Java\jre7\bin>java.exe -Xmx930m -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode)
D:\Program Files\Java\jre7\bin>java.exe -Xmx931m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
And when i close most processes in PC and free memory to 2.5 GB, for JRE7, it will succeed with 1094m, like below.
D:\Program Files\Java\jre7\bin>java.exe -Xmx1094m -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode)
D:\Program Files\Java\jre7\bin>java.exe -Xmx1095m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
It seems that the max heap size that JVM can request is related with system available memory size, does someone know the exact relationship?
Is there some way to enable tracing logs of JRE when creating JVM?
Thank you!
Regards,
Joey
I faced the same issue on various Windows OS flavous (Win7, Win2008R2) while having enough free RAM (3-5G), when switching from jre6_20 to jre7_51 (both 32 bit VMs)
Using vm args -Xmx1300m and -XX:MaxPermSize=256m on java 6 the VM is able to start. However, with java7 I had to lower down startup max memory (xmx with 100m or permgen with 100m) in order to be able to start VM.
The interesting part is this: if I restarted my box, the jvm 7 started with original vm args (-Xmx1300m and -XX:MaxPermSize=256m) so I suspect the root cause might be the OS with JVM combination.
I know that on Windows OSes - 32 bit VMs expect to have a single large chunk of memory, but cannot use the maximum process memory size will range from 1.4G to 1.6G (because of additional constraints)
Any troubleshooting pointers? Oracle does not provide any information in java7 release notes (or I could not spot those)
I have a similar problem Windows 7 64bit, no JAVA_HOME set nor in PATH
This fails
"C:\Program Files (x86)\Java\jdk1.7.0_51\bin\java.exe" -Xms32m -Xmx1024m -XX:MaxPermSize=256m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
This works
"C:\Program Files (x86)\Java\jdk1.7.0_51\bin\java.exe" -Xms32m -Xmx512m -XX:MaxPermSize=256m -version
This also works (I can recompile or not, doesn't make a difference
"C:\Program Files (x86)\Java\jdk1.6.0_45\bin\java.exe" -Xms32m -Xmx1024m -XX:MaxPermSize=256m -version
I tried turning off windows DEP, didnt make a difference
http://windows.microsoft.com/en-us/windows-vista/data-execution-prevention-frequently-asked-questions
I twiddled with the Virtual Memory settings , changed from allowing Windows to Manage
http://windows.microsoft.com/en-us/windows/change-virtual-memory-size#1TC=windows-7
I upped the Virual Memory in windows and it allowed it to work, sometimes...(with xmx1024)
Nothing else is consuming a lot of resources (memory, etc, I did have oracle database running locally, but shut it down)
"C:\Program Files (x86)\Java\jdk1.7.0_51\bin\java.exe" -Xms32m -Xmx1024m -XX:MaxPermSize=256m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
This works
"C:\Program Files (x86)\Java\jdk1.7.0_51\bin\java.exe" -Xms32m -Xmx900m -XX:MaxPermSize=256m -version
This fails
U:>"C:\Program Files (x86)\Java\jdk1.7.0_51\bin\java.exe" -Xms32m -Xmx2024m -XX
:MaxPermSize=256m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
New version , works even with letting Windows Managage the Virtual Memory and DEP turned on
"C:\Program Files (x86)\Java\jdk1.7.0_65\bin\java.exe" -Xms32m -Xmx1024m -XX:MaxPermSize=256m -version
I want to increase the heap size of my Glassfish. For that, I know that I can go up to 4GB:
java -Xmx4000M -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)
I tried to set in domain.xml file the -Xmx to 2GB:
<jvm-options>-Xmx2000m</jvm-options>
But I am getting the following error:
asadmin> start-domain
Waiting for ... to start .Error starting domain ...
The server exited prematurely with exit code 1.
Before it died, it produced the following output:
Error occurred during initialization of VM
The size of the object heap + VM data exceeds the maximum representable size
launchctl bsexec failed: Inappropriate ioctl for device
Launching the command with -v option gives this:
12 oct. 2011 11:46:34 com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=512m
-XX:NewRatio=2
-XX:+CMSClassUnloadingEnabled
-Xmx2000m
-Xms1000m
...
12 oct. 2011 11:46:35 com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 45 msec.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Command start-domain failed.
I found the problem. For some reasons which I do not understand, the "-d32" argument was passed in the command, asking to start in 32 bits mode. When adding
<jvm-options>-d64</jvm-options>
to the domain.xml file, glassfish starts. Please note that this option is not present by default in the file.
you must be using a different Java install when doing the "-version" and from within GlassFish. I can reproduce the same error with the default "java" in Mac OS' path but not when using an absolute path :
% /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx2300m -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-383-11A511)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-383, mixed mode)
% java -Xmx2300m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Could it be that you don't have enough disk space on your system? Reserving 4GB of RAM may require MAC OS to expand swap space, and you may not have the disk space to do this. Unfortunately, this has burned me before :-/