Erro de Execução do JSE no Windows Server
25/05/2012 22:32
0
E ai pessoal,

Estou enfrentando um problema e gostaria de saber se vocês já passaram por isso. Estou desenvolvendo o aplicativo no Windows XP, mas ele ficará rodando no servidor com o Windows Server 2003 R2 Enterprise Edition (com 4GB de ram).

Ao executar comando grails run-app com os mesmos arquivos do windows XP, ocorre um erro no java. Segue o código:


# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6ddeadb6, pid=5976, tid=5192
#
# JRE version: 7.0-b147
# Java VM: Java HotSpot(TM) Server VM (21.0-b17 mixed mode windows-x86 )
# Problematic frame:
# V [jvm.dll+0x1adb6]
#
# Core dump written. Default location: C:\src\web\gaia\hs_err_pid5976.mdmp
--------------- T H R E A D ---------------
Current thread (0x44081000): VMThread [stack: 0x44270000,0x442c0000] [id=5192]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000c

Registers:
EAX=0x00000000, EBX=0x42044c40, ECX=0x00000000, EDX=0xffffffff
ESP=0x442bfa10, EBP=0x442bfa34, ESI=0x360fb460, EDI=0x43fc9ce8
EIP=0x6ddeadb6, EFLAGS=0x00010293

Top of Stack: (sp=0x442bfa10)
0x442bfa10: 43fc9d1c 6e028c67 442bfc84 43fc9d1c
0x442bfa20: 42044c40 42046c1b 00000001 00000000
0x442bfa30: 00044e28 442bfa88 6e0297c6 360fb460
0x442bfa40: 442bfc84 442bfcb8 003b3300 442bfc84
0x442bfa50: 41e39f80 41e39f8c 42044e2b 00000001
0x442bfa60: 00000001 00010000 442bfa7c 6e028feb
0x442bfa70: 36d1e830 42044c40 41e39f80 442bfa90
0x442bfa80: 6e029e24 43fc9ce8 442bfadc 6e02a1bd

Instructions: (pc=0x6ddeadb6)
0x6ddead96: 5d c2 04 00 8b 01 8b 50 54 56 ff d2 5e 5d c2 04
0x6ddeada6: 00 cc cc cc cc cc cc cc cc cc 56 8b f1 8b 4e 04
0x6ddeadb6: 8b 41 0c 83 c1 08 85 c0 7e 09 a8 01 75 30 c1 f8
0x6ddeadc6: 02 5e c3 79 29 8b 76 08 8b 15 6c 71 24 6e 8b c8

Register to memory mapping:

EAX=0x00000000 is an unknown value
EBX=0x42044c40 is an unknown value
ECX=0x00000000 is an unknown value
EDX=0xffffffff is an unknown value
ESP=0x442bfa10 is an unknown value
EBP=0x442bfa34 is an unknown value
ESI=0x360fb460 is an unknown value
EDI=0x43fc9ce8 is an unknown value

Stack: [0x44270000,0x442c0000], sp=0x442bfa10, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x1adb6]
V [jvm.dll+0x2597c6]
V [jvm.dll+0x25a1bd]
V [jvm.dll+0x78728]
V [jvm.dll+0x78843]
V [jvm.dll+0x25a868]
V [jvm.dll+0x25ae69]
V [jvm.dll+0x24df7a]
V [jvm.dll+0x25c6ef]
V [jvm.dll+0x15d035]
V [jvm.dll+0x15c26e]
V [jvm.dll+0x15c59c]
V [jvm.dll+0x15ca12]
V [jvm.dll+0x185889]
C [msvcr100.dll+0x5c6de] endthreadex+0x3a
C [msvcr100.dll+0x5c788] endthreadex+0xe4
C [kernel32.dll+0x2482f] GetModuleHandleA+0xdf

VM_Operation (0x0094ec88): ParallelGCFailedAllocation, mode: safepoint, requested by thread 0x003b8800
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x44110400 JavaThread "Service Thread" daemon [_thread_blocked, id=4112, stack(0x444a0000,0x444f0000)]
0x440fbc00 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=5836, stack(0x44450000,0x444a0000)]
0x440f9c00 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=3740, stack(0x44400000,0x44450000)]
0x440c1000 JavaThread "Attach Listener" daemon [_thread_blocked, id=5568, stack(0x443b0000,0x44400000)]
0x440bf800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=572, stack(0x44360000,0x443b0000)]
0x44085800 JavaThread "Finalizer" daemon [_thread_blocked, id=5596, stack(0x44310000,0x44360000)]
0x43fce800 JavaThread "Reference Handler" daemon [_thread_blocked, id=5832, stack(0x442c0000,0x44310000)]
0x003b8800 JavaThread "main" [_thread_blocked, id=3784, stack(0x00900000,0x00950000)]

Other Threads:
=>0x44081000 VMThread [stack: 0x44270000,0x442c0000] [id=5192]
0x44126400 WatcherThread [stack: 0x444f0000,0x44540000] [id=4032]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x003b7690] Threads_lock - owner thread: 0x44081000
[0x003b7aa0] Heap_lock - owner thread: 0x003b8800

Heap
PSYoungGen total 229376K, used 200680K [0x33b40000, 0x43b40000, 0x43b40000)
eden space 196608K, 100% used [0x33b40000,0x3fb40000,0x3fb40000)
from space 32768K, 12% used [0x3fb40000,0x3ff3a3b0,0x41b40000)
to space 32768K, 15% used [0x41b40000,0x4204a948,0x43b40000)
PSOldGen total 524288K, used 0K [0x13b40000, 0x33b40000, 0x33b40000)
object space 524288K, 0% used [0x13b40000,0x13b40000,0x33b40000)
PSPermGen total 262144K, used 6775K [0x03b40000, 0x13b40000, 0x13b40000)
object space 262144K, 2% used [0x03b40000,0x041ddeb0,0x13b40000)

Code Cache [0x00a80000, 0x00cc0000, 0x03a80000)
total_blobs=455 nmethods=82 adapters=325 free_code_cache=47732Kb largest_free_block=48861952

Dynamic libraries:
0x00400000 - 0x0042e000 C:\src\JDK\bin\java.exe
0x7c910000 - 0x7c9d7000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c90c000 C:\WINDOWS\system32\kernel32.dll
0x44e90000 - 0x44f3e000 C:\WINDOWS\system32\ADVAPI32.dll
0x77c40000 - 0x77ce0000 C:\WINDOWS\system32\RPCRT4.dll
0x76e70000 - 0x76e83000 C:\WINDOWS\system32\Secur32.dll
0x77f40000 - 0x77fd1000 C:\WINDOWS\system32\USER32.dll
0x77bf0000 - 0x77c39000 C:\WINDOWS\system32\GDI32.dll
0x77360000 - 0x77463000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.4770_x-ww_05FDF087\COMCTL32.dll
0x77b90000 - 0x77bea000 C:\WINDOWS\system32\msvcrt.dll
0x77ee0000 - 0x77f32000 C:\WINDOWS\system32\SHLWAPI.dll
0x761b0000 - 0x761cd000 C:\WINDOWS\system32\IMM32.DLL
0x78aa0000 - 0x78b5e000 C:\src\JDK\jre\bin\msvcr100.dll
0x6ddd0000 - 0x6e2c8000 C:\src\JDK\jre\bin\server\jvm.dll
0x71a00000 - 0x71a0a000 C:\WINDOWS\system32\WSOCK32.dll
0x71a50000 - 0x71a67000 C:\WINDOWS\system32\WS2_32.dll
0x71a40000 - 0x71a48000 C:\WINDOWS\system32\WS2HELP.dll
0x769c0000 - 0x769ee000 C:\WINDOWS\system32\WINMM.dll
0x76a90000 - 0x76a9b000 C:\WINDOWS\system32\PSAPI.DLL
0x71a10000 - 0x71a18000 C:\WINDOWS\system32\rdpsnd.dll
0x779b0000 - 0x779c1000 C:\WINDOWS\system32\WINSTA.dll
0x71a90000 - 0x71ae7000 C:\WINDOWS\system32\NETAPI32.dll
0x6da10000 - 0x6da1c000 C:\src\JDK\jre\bin\verify.dll
0x6d480000 - 0x6d4a0000 C:\src\JDK\jre\bin\java.dll
0x6d430000 - 0x6d450000 C:\src\JDK\jre\bin\instrument.dll
0x6da60000 - 0x6da73000 C:\src\JDK\jre\bin\zip.dll
0x68000000 - 0x68035000 C:\WINDOWS\system32\rsaenh.dll
0x76840000 - 0x76903000 C:\WINDOWS\system32\USERENV.dll
0x6d770000 - 0x6d784000 C:\src\JDK\jre\bin\net.dll
0x71970000 - 0x719b2000 C:\WINDOWS\System32\mswsock.dll
0x76df0000 - 0x76e1b000 C:\WINDOWS\system32\DNSAPI.dll
0x76e90000 - 0x76e97000 C:\WINDOWS\System32\winrnr.dll
0x76e30000 - 0x76e5f000 C:\WINDOWS\system32\WLDAP32.dll
0x76ea0000 - 0x76ea5000 C:\WINDOWS\system32\rasadhlp.dll
0x6d790000 - 0x6d79f000 C:\src\JDK\jre\bin\nio.dll
0x449b0000 - 0x44a04000 C:\Documents and Settings\Administrador.CNA\Configurações locais\Temp\1\jna4391411022247741704.dll
0x44a20000 - 0x44a28000 C:\Documents and Settings\Administrador.CNA\Configurações locais\Temp\1\jline_.dll
0x6d7e0000 - 0x6d888000 C:\WINDOWS\system32\DBGHELP.DLL
0x77b80000 - 0x77b88000 C:\WINDOWS\system32\VERSION.dll

VM Arguments:
jvm_args: -Xmx768M -Xms768M -XX:PermSize=256m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8 -Dserver.port=9090 -javaagent:C:/src/Grails/grails-2.0.3/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-1.0.5.jar -Xverify:none -Dspringloaded=profile=grails -Dprogram.name= -Dgrails.home=C:\src\Grails\grails-2.0.3 -Dgrails.version=2.0.3 -Dbase.dir=. -Dtools.jar=C:\src\JDK\lib\tools.jar -Dgroovy.starter.conf=C:\src\Grails\grails-2.0.3\conf\groovy-starter.conf
java_command: org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\src\Grails\grails-2.0.3\conf\groovy-starter.conf --classpath run-app
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\src\JDK
PATH=C:\src\JDK\bin;C:\src\Grails\grails-2.0.3\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Arquivos de programas\Microsoft SQL Server\80\Tools\Binn\;C:\Arquivos de programas\Microsoft SQL Server\100\Tools\Binn\;C:\Arquivos de programas\Microsoft SQL Server\100\DTS\Binn\;C:\Arquivos de programas\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Arquivos de programas\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\
USERNAME=Administrador
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Server 2003 family Build 3790 Service Pack 2

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1

Memory: 4k page, physical 3397768k(1112548k free), swap 5339376k(2891956k free)

vm_info: Java HotSpot(TM) Server VM (21.0-b17) for windows-x86 JRE (1.7.0-b147), built on Jun 27 2011 02:22:48 by "java_re" with unknown MS VC++:1600

time: Fri May 25 09:57:11 2012
elapsed time: 17 seconds


Na pasta do projeto é gerado um arquivo de log e outro MDMP de 1.2GB.

Será que falta memória, pois no mesmo servidor esta rodando o SQL Server e o ISA Server?

Lí em outro fórum onde sugeriram atualizar a versão do JSE. Aqui em casa, uso a versão 6u25. No servidor já tentei instalar a versão 6u32 e a 7u4 mas mesmo assim o erro ocorre.
Tags: Erro JSE EXCEPTION_ACCESS_VIOLATION


0
Só para esclarecer, esse erro ocorre, segundo um texto que lí, o java por padrão puxa bastante memória da CPU, portanto, no Painel de Controle / Java, em Java Runtime Environment, devemos limitar o tamanho da memória usada, digitando o seguinte: -xmx512MB.

Outra coisa que lí também é que se a memória da máquina possuir algum problema físico mesmo, pode ocorrer o mesmo erro.




Ainda não faz parte da comunidade???

Para se registrar, clique aqui.


Aprenda Groovy e Grails com a Formação itexto!

Newsletter Semana Groovy

Assinar

Envie seu link!


Livro de Grails


/dev/All

Os melhores blogs de TI (e em português) em um único lugar!

 
Creative Commons
RSS Grails Brasil é mantido por itexto Consultoria.
Em caso de problemas contacte Henrique Lobo Weissmann (Kico) por e-mail: kico@itexto.com.br
Todo o conteúdo presente neste site adota o Creative Commons como licença padrão.
Ver: 4.14.0
itexto