#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x476eff10, pid=3396, tid=1940
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
# Problematic frame:
# C  [AspriseOCR.dll+0x2ff10]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#---------------  T H R E A D  ---------------Current thread (0x47146800):  JavaThread "Thread-5" [_thread_in_native, id=1940, stack(0x43c30000,0x43c80000)]siginfo: ExceptionCode=0xc0000005, reading address 0xfffffffcRegisters:
EAX=0x00000000, EBX=0x00000069, ECX=0x00000000, EDX=0xffffffff
ESP=0x43c796c4, EBP=0x00000000, ESI=0x00000008, EDI=0x47b65ef0
EIP=0x476eff10, EFLAGS=0x00010246Top of Stack: (sp=0x43c796c4)
0x43c796c4:   ffffffff 00000014 43c7fa80 43c79754
0x43c796d4:   43c79750 236de320 000000a0 00000064
0x43c796e4:   00000005 00000000 00000000 00000008
0x43c796f4:   00000017 0000000a 00000002 476f231b
0x43c79704:   43c79754 00000000 0000001e 00000000
0x43c79714:   47146800 43c79750 43c7fa80 236de328
0x43c79724:   476c6be6 43c79750 43c79750 00000006
0x43c79734:   43c7f818 43c79750 4785ea30 4785ea44 Instructions: (pc=0x476eff10)
0x476eff00:   e8 ab e8 ff ff a1 a0 ff 85 47 8b 50 54 8b 40 4c
0x476eff10:   8b 0c 90 8d 04 90 8b 11 89 10 a1 a0 ff 85 47 8b 
Stack: [0x43c30000,0x43c80000],  sp=0x43c796c4,  free space=12543c791f8k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [AspriseOCR.dll+0x2ff10][error occurred during error reporting (printing native stack), id 0xc0000005]Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.asprise.util.ocr.OCR.performOCR(Ljava/awt/image/RenderedImage;I)Ljava/lang/String;+0
j  com.asprise.util.ocr.OCR.processString(Ljava/awt/image/RenderedImage;ILjava/lang/String;Ljava/lang/String;)Ljava/lang/Object;+27
j  com.asprise.util.ocr.OCR.recognizeEverything(Ljava/awt/image/RenderedImage;)Ljava/lang/String;+7
j  com.ode.getCode(Lorg/apache/http/client/HttpClient;)Ljava/lang/String;+49
j  com.ong.loginRequest(Ljava/lang/String;Ljava/lang/String;)Z+51
j  com.ong.run()V+101
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub---------------  P R O C E S S  ---------------Java Threads: ( => current thread )
  0x470c7c00 JavaThread "Thread-8" [_thread_in_native, id=1896, stack(0x47670000,0x476c0000)]
  0x4715f000 JavaThread "Thread-7" [_thread_in_native, id=1952, stack(0x47620000,0x47670000)]
  0x431ee800 JavaThread "Thread-6" [_thread_in_native, id=1948, stack(0x475d0000,0x47620000)]
=>0x47146800 JavaThread "Thread-5" [_thread_in_native, id=1940, stack(0x43c30000,0x43c80000)]
  0x47146400 JavaThread "Thread-4" [_thread_in_native, id=1936, stack(0x43580000,0x435d0000)]
  0x431e8800 JavaThread "Thread-3" [_thread_blocked, id=256, stack(0x474a0000,0x474f0000)]
  0x432d7800 JavaThread "TimerQueue" daemon [_thread_blocked, id=3756, stack(0x45fc0000,0x46010000)]
  0x432cc000 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=3748, stack(0x45130000,0x45180000)]
  0x432b9400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3752, stack(0x43f10000,0x43f60000)]
  0x43222400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3736, stack(0x436c0000,0x43710000)]
  0x43215000 JavaThread "AWT-Shutdown" [_thread_blocked, id=3732, stack(0x43670000,0x436c0000)]
  0x4321f400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3728, stack(0x43620000,0x43670000)]
  0x00317000 JavaThread "DestroyJavaVM" [_thread_blocked, id=3644, stack(0x008f0000,0x00940000)]
  0x431ff400 JavaThread "Wrapper-Connection" daemon [_thread_in_native, id=3684, stack(0x43460000,0x434b0000)]
  0x42ea6400 JavaThread "Wrapper-Control-Event-Monitor" daemon [_thread_blocked, id=3676, stack(0x43380000,0x433d0000)]
  0x42e55800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3668, stack(0x430a0000,0x430f0000)]
  0x42e50800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1248, stack(0x43050000,0x430a0000)]
  0x42e4f400 JavaThread "Attach Listener" daemon [_thread_blocked, id=3648, stack(0x43000000,0x43050000)]
  0x42e61c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2388, stack(0x42fb0000,0x43000000)]
  0x42e34800 JavaThread "Finalizer" daemon [_thread_blocked, id=3660, stack(0x42f60000,0x42fb0000)]
  0x42e33000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3656, stack(0x42f10000,0x42f60000)]Other Threads:
  0x42e30400 VMThread [stack: 0x42ec0000,0x42f10000] [id=3652]
  0x42e62400 WatcherThread [stack: 0x430f0000,0x43140000] [id=3672]VM state:not at safepoint (normal execution)VM Mutex/Monitor currently owned by a thread: NoneHeap
 def new generation   total 78656K, used 58763K [0x029f0000, 0x07f40000, 0x0d490000)
  eden space 69952K,  84% used [0x029f0000, 0x06352e48, 0x06e40000)
  from space 8704K,   0% used [0x06e40000, 0x06e40000, 0x076c0000)
  to   space 8704K,   0% used [0x076c0000, 0x076c0000, 0x07f40000)
 tenured generation   total 174784K, used 0K [0x0d490000, 0x17f40000, 0x229f0000)
   the space 174784K,   0% used [0x0d490000, 0x0d490000, 0x0d490200, 0x17f40000)
 compacting perm gen  total 524288K, used 13298K [0x229f0000, 0x429f0000, 0x429f0000)
   the space 524288K,   2% used [0x229f0000, 0x236ecac0, 0x236ecc00, 0x429f0000)
No shared spaces configured.
VM Arguments:
jvm_args: -Dapp.name=rhq-server -Xms256m -Xmx512m -XX:PermSize=512M -XX:MaxPermSize=512M -Djava.library.path=lib -Dwrapper.key=bhIQWoNIJBX7JNRL -Dwrapper.port=32002 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=3612 -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1 
java_command: org.tanukisoftware.wrapper.WrapperSimpleApp demo.UserConfigUI
Launcher Type: SUN_STANDARDEnvironment Variables:
PATH=C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static
USERNAME=Administrator
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 42 Stepping 7, GenuineIntel---------------  S Y S T E M  ---------------OS: Windows XP Build 2600 Service Pack 3CPU:total 8 (8 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, htMemory: 4k page, physical 3641860k(3029944k free), swap 5569604k(2724804k free)vm_info: Java HotSpot(TM) Client VM (16.0-b13) for windows-x86 JRE (1.6.0_18-b07), built on Dec 17 2009 13:35:55 by "java_re" with MS VC++ 7.1 (VS2003)time: Wed Mar 27 07:55:00 2013
elapsed time: 1924 seconds

解决方案 »

  1.   

    上一个发布完啊~~~继续啊:Dynamic libraries:
    0x00400000 - 0x00424000  C:\Agent20130323\jdk1.6.0_18\jre\bin\java.exe
    0x7c920000 - 0x7c9b6000  C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c91e000  C:\WINDOWS\system32\kernel32.dll
    0x77da0000 - 0x77e49000  C:\WINDOWS\system32\ADVAPI32.dll
    0x77e50000 - 0x77ee3000  C:\WINDOWS\system32\RPCRT4.dll
    0x77fc0000 - 0x77fd1000  C:\WINDOWS\system32\Secur32.dll
    0x7c340000 - 0x7c396000  C:\Agent20130323\jdk1.6.0_18\jre\bin\msvcr71.dll
    0x6d8b0000 - 0x6db47000  C:\Agent20130323\jdk1.6.0_18\jre\bin\client\jvm.dll
    0x77d10000 - 0x77da0000  C:\WINDOWS\system32\USER32.dll
    0x77ef0000 - 0x77f39000  C:\WINDOWS\system32\GDI32.dll
    0x76b10000 - 0x76b3a000  C:\WINDOWS\system32\WINMM.dll
    0x76300000 - 0x7631d000  C:\WINDOWS\system32\IMM32.DLL
    0x62c20000 - 0x62c29000  C:\WINDOWS\system32\LPK.DLL
    0x73fa0000 - 0x7400b000  C:\WINDOWS\system32\USP10.dll
    0x6d860000 - 0x6d86c000  C:\Agent20130323\jdk1.6.0_18\jre\bin\verify.dll
    0x6d3e0000 - 0x6d3ff000  C:\Agent20130323\jdk1.6.0_18\jre\bin\java.dll
    0x6d340000 - 0x6d348000  C:\Agent20130323\jdk1.6.0_18\jre\bin\hpi.dll
    0x76bc0000 - 0x76bcb000  C:\WINDOWS\system32\PSAPI.DLL
    0x6d8a0000 - 0x6d8af000  C:\Agent20130323\jdk1.6.0_18\jre\bin\zip.dll
    0x43340000 - 0x43357000  C:\Agent20130323\jdk1.6.0_18\jre\bin\wrapper.dll
    0x6d0b0000 - 0x6d1fa000  C:\Agent20130323\jdk1.6.0_18\jre\bin\awt.dll
    0x72f70000 - 0x72f96000  C:\WINDOWS\system32\WINSPOOL.DRV
    0x77be0000 - 0x77c38000  C:\WINDOWS\system32\msvcrt.dll
    0x76990000 - 0x76ace000  C:\WINDOWS\system32\ole32.dll
    0x77180000 - 0x77283000  C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\COMCTL32.dll
    0x77f40000 - 0x77fb6000  C:\WINDOWS\system32\SHLWAPI.dll
    0x6d6c0000 - 0x6d6d3000  C:\Agent20130323\jdk1.6.0_18\jre\bin\net.dll
    0x71a20000 - 0x71a37000  C:\WINDOWS\system32\WS2_32.dll
    0x71a10000 - 0x71a18000  C:\WINDOWS\system32\WS2HELP.dll
    0x719c0000 - 0x719fe000  C:\WINDOWS\system32\mswsock.dll
    0x60fd0000 - 0x61025000  C:\WINDOWS\system32\hnetcfg.dll
    0x71a00000 - 0x71a08000  C:\WINDOWS\System32\wshtcpip.dll
    0x5adc0000 - 0x5adf7000  C:\WINDOWS\system32\uxtheme.dll
    0x74680000 - 0x746cc000  C:\WINDOWS\system32\MSCTF.dll
    0x73640000 - 0x7366e000  C:\WINDOWS\system32\msctfime.ime
    0x43750000 - 0x4389f000  C:\WINDOWS\system32\SOGOUPY.IME
    0x762f0000 - 0x762f5000  C:\WINDOWS\system32\MSIMG32.dll
    0x770f0000 - 0x7717b000  C:\WINDOWS\system32\OLEAUT32.dll
    0x7d590000 - 0x7dd85000  C:\WINDOWS\system32\SHELL32.dll
    0x77bd0000 - 0x77bd8000  C:\WINDOWS\system32\VERSION.dll
    0x76cb0000 - 0x76cd0000  C:\WINDOWS\system32\NTMARTA.DLL
    0x71b70000 - 0x71b83000  C:\WINDOWS\system32\SAMLIB.dll
    0x76f30000 - 0x76f5c000  C:\WINDOWS\system32\WLDAP32.dll
    0x6d2e0000 - 0x6d334000  C:\Agent20130323\jdk1.6.0_18\jre\bin\fontmanager.dll
    0x6d6e0000 - 0x6d6e9000  C:\Agent20130323\jdk1.6.0_18\jre\bin\nio.dll
    0x4b640000 - 0x4b7e6000  C:\WINDOWS\system32\d3d9.dll
    0x6dd20000 - 0x6dd26000  C:\WINDOWS\system32\d3d8thk.dll
    0x6d250000 - 0x6d273000  C:\Agent20130323\jdk1.6.0_18\jre\bin\dcpr.dll
    0x68000000 - 0x68036000  C:\WINDOWS\system32\rsaenh.dll
    0x759d0000 - 0x75a7f000  C:\WINDOWS\system32\USERENV.dll
    0x5fdd0000 - 0x5fe26000  C:\WINDOWS\system32\netapi32.dll
    0x76ef0000 - 0x76f17000  C:\WINDOWS\system32\DNSAPI.dll
    0x76d30000 - 0x76d48000  C:\WINDOWS\system32\iphlpapi.dll
    0x76f80000 - 0x76f88000  C:\WINDOWS\System32\winrnr.dll
    0x76f90000 - 0x76f96000  C:\WINDOWS\system32\rasadhlp.dll
    0x6d500000 - 0x6d524000  C:\Agent20130323\jdk1.6.0_18\jre\bin\jpeg.dll
    0x476c0000 - 0x4787c000  C:\Agent20130323\lib\AspriseOCR.dll
    0x47880000 - 0x47a08000  C:\Agent20130323\jdk1.6.0_18\jre\bin\DevIL.dll
    0x47510000 - 0x47524000  C:\Agent20130323\jdk1.6.0_18\jre\bin\ILU.dll
    0x76320000 - 0x76367000  C:\WINDOWS\system32\comdlg32.dll
    0x61880000 - 0x618ba000  C:\WINDOWS\system32\OLEACC.dll
      

  2.   

    8核CPU也宕掉?
    看看你的wrapper.conf配置文件,有木有试过jdk1.7?
      

  3.   


    VM Arguments:
    jvm_args: -Dapp.name=
    rhq-server -Xms256m -Xmx512m -XX:PermSize=512M -XX:MaxPermSize=512M 
    -Djava.library.path=lib -Dwrapper.key=bhIQWoNIJBX7JNRL -Dwrapper.port=32002 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=3612 
    -Dwrapper.version=3.2.3 -Dwrapper.native_library=wrapper -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
     
    java_command: org.tanukisoftware.wrapper.WrapperSimpleApp dem.ConfigUI
    Launcher Type: SUN_STANDARDEnvironment Variables:
    PATH=
    C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
    C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;
    C:\Program Files\ATI Technologies\ATI.ACE\Core-Static
    USERNAME=Administrator
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 42 Stepping 7, GenuineIntel
    这下参数全了
      

  4.   

    wrapper的配置文件。
    wrapper.java.command=jdk1.6.0_18\jre\bin\java
    #wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleAppwrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp# Java Classpath (include wrapper.jar)  Add class path elements as
    #  needed starting from 1
    wrapper.java.classpath.1=lib/wrapper.jar
    wrapper.java.classpath.2=lib/wrapper.dll
    wrapper.java.classpath.3=lib/new.jar
    wrapper.java.classpath.4=lib/*.jar
    wrapper.java.classpath.5=lib/*.dll# Java Library Path (location of Wrapper.DLL or libwrapper.so)
    wrapper.java.library.path.1=lib# Java Additional Parameters
    #wrapper.java.additional.1=-Djava.awt.headless=falsh
    wrapper.java.additional.1=-Dapp.name=rhq-server
    wrapper.java.additional.2=-Xms256m
    wrapper.java.additional.3=-Xmx512m
    wrapper.java.additional.4=-XX:PermSize=512M
    wrapper.java.additional.5=-XX:MaxPermSize=512M
    #wrapper.java.additional.6=-XX:UseParallelGC
    wrapper.java.additional.7=-Xss128k
    wrapper.java.additional.8=-XX:+UseParallelGC
    wrapper.java.additional.9=-Xmn2g
    # Initial Java Heap Size (in MB)
    #wrapper.java.initmemory=128# Maximum Java Heap Size (in MB)
    #wrapper.java.maxmemory=512# Application parameters.  Add parameters as needed starting from 1
    wrapper.app.parameter.1=dem.FigUI#********************************************************************
    # Wrapper Windows Properties
    #********************************************************************
    # Title to use when running as a console
    wrapper.console.title=NewInfos#********************************************************************
    # Wrapper Windows NT/2000/XP Service Properties
    #********************************************************************
    # WARNING - Do not modify any of these properties when an application
    #  using this configuration file has been installed as a service.
    #  Please uninstall the service before modifying this section.  The
    #  service can then be reinstalled.# Name of the service
    wrapper.ntservice.name=NewInfos# Display name of the service
    wrapper.ntservice.displayname=NewInfos# Description of the service
    wrapper.ntservice.description=NewInfos# Service dependencies.  Add dependencies as needed starting from 1
    wrapper.ntservice.dependency.1=# Mode in which the service is installed.  AUTO_START or DEMAND_START
    wrapper.ntservice.starttype=AUTO_START# Allow the service to interact with the desktop.
    wrapper.ntservice.interactive=true
    #********************************************************************
    # Wrapper Logging Properties
    #********************************************************************
    # Format of output for the console.  (See docs for formats)
    wrapper.console.format=PM# Log Level for console output.  (See docs for log levels)
    wrapper.console.loglevel=INFO# Log file to use for wrapper output logging.
    wrapper.logfile=wrapper.log# Format of output for the log file.  (See docs for formats)
    wrapper.logfile.format=LPTM# Log Level for log file output.  (See docs for log levels)
    wrapper.logfile.loglevel=INFO# Maximum size that the log file will be allowed to grow to before
    #  the log is rolled. Size is specified in bytes.  The default value
    #  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
    #  'm' (mb) suffix.  For example: 10m = 10 megabytes.
    wrapper.logfile.maxsize=0# Maximum number of rolled log files which will be allowed before old
    #  files are deleted.  The default value of 0 implies no limit.
    wrapper.logfile.maxfiles=0
    wrapper.syslog.loglevel=INFOwrapper.disable_restarts=false
    wrapper.ping.timeout=30
      

  5.   

    -Xms256m -Xmx512m -XX:PermSize=512M -XX:MaxPermSize=512M 
    堆的大最大值512M有些小,而且让持久代一下子占完了,内存分配都在持久代,不利于垃圾回收
      

  6.   

    改了还是不行啊!编译和启动有时候还直接挂了啊wrapper  | JVM exited unexpectedly.
    wrapper  | Launching a JVM...
    jvm 2    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
    jvm 2    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
    jvm 2    |
      

  7.   

    改了还是不行啊!编译和启动有时候还直接挂了啊wrapper  | JVM exited unexpectedly.
    wrapper  | Launching a JVM...
    jvm 2    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
    jvm 2    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
    jvm 2    |
      

  8.   

    路过区域----------------------->
    打酱油。。参考区域----------------------->我没看懂你这个是干什么的,但我之前也用过wrapper的方式启动service
    wrapper把我整了一段时间~~~ 结果是wrapper抓到的jre的路径总是系统默认的1.4....的版本的jre
    我自己配的jre他抓不到,即使环境变量什么的都配置了但是还是抓不到,其次wrapper启动调用jar的角色权限有点异常,没搞懂,最后用jsvc没有问题。 
      

  9.   

     
    Stack: [0x43c30000,0x43c80000],  sp=0x43c796c4,  free space=12543c791f8k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [AspriseOCR.dll+0x2ff10]
     
    [error occurred during error reporting (printing native stack), id 0xc0000005]
     
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  com.asprise.util.ocr.OCR.performOCR(Ljava/awt/image/RenderedImage;I)Ljava/lang/String;+0
    j  com.asprise.util.ocr.OCR.processString(Ljava/awt/image/RenderedImage;ILjava/lang/String;Ljava/lang/String;)Ljava/lang/Object;+27
    j  com.asprise.util.ocr.OCR.recognizeEverything(Ljava/awt/image/RenderedImage;)Ljava/lang/String;+7
    j  com.ode.getCode(Lorg/apache/http/client/HttpClient;)Ljava/lang/String;+49
    j  com.ong.loginRequest(Ljava/lang/String;Ljava/lang/String;)Z+51
    j  com.ong.run()V+101
    j  java.lang.Thread.run()V+11
    v  ~StubRoutines::call_stub仔细分析这个错误帧里面的函数试试
      

  10.   

    后台服务器的可控性是很难掌握的。
    楼主的进程崩溃了,要看是什么原因崩溃的。
    先了解原因,再着手解决。有时候,硬盘写满了,文件(夹)建多了,等等等等的事情,也是可能蹦掉进程的。
    当然了,楼主贴的那个,我没用过,不太会看。
    不过,看到内存里面有个占用了84%,这个字样的东西,通过总内存使用量和这个值也差不多。
    那我就要问问楼主了,您这10个线程都是干嘛的啊,有这么吃内存的线程啊
    我们线程,一般都用来处理数据,您这线程都用来占有数据了,光占着,不处理是吧。
    根据启动参数的内存配比来看,10个线程,每个线程大概要吞到40多兆的内存,并且,这只是在启动初期的现象,还不知道具体是要吞多少。总之,我总觉得是楼主程序的问题,应该和wrapper的配置没多大关系。
    程序有内存泄露,你内存配得再大,该出问题照样出问题。
      

  11.   

    Java程序崩溃了,居然没有把异常堆栈找到,说明你的Java程序,把异常吞掉了,也就是说,异常处理的代码,你什么都没处理,连记录个日志都没有做。
    我一般都是查异常信息来判断的,没有异常信息,我就去代码里面补上被吞掉的异常,写到日志里面。然后再找。否则,以后,其他地方出了问题,一样还是搞不定。对于楼主的问题,楼主不妨,先启用一个线程,运行稳定后,看看内存的使用情况。
    如果一个线程,内存都稳步上升,那说明,这个线程所涉及的所有代码中,有内存泄露的地方。
    如果没有上述现象,那么会观察一个大概的值。
    这时,启用两个线程,稳定后,观察一下内存的使用值。之后是启用三个线程
    这样就能够判断,每个线程运行起来,大约消耗的内存数量。
    之后,算出十个线程所需要的最小内存量,修改JVM的启动参数,即可。
      

  12.   

    哦。对了,忘了说了。
    我记得wrapper是用来做后台服务的吧。
    楼主给出的信息里面,我看到了AWT线程,这个是比较诡异的。我没见过,后台服务,还要运行什么图形界面绘制线程,和图形界面事件处理线程。
    也就是说,后台服务,没有用户图形界面。
    后台服务,是操作系统启动之后,用户未登录系统之前,就可以运行的服务性的程序。
    用户登录系统后,进入桌面之后,才是运行图形界面的程序。
      

  13.   

    建议先看看异常到底是jvm那部分的内存溢出,再针对该部分作jvm优化
      

  14.   


    我看到这个崩溃日志我看了半天也看不懂啊。因为这个里面调用了dll用jni里面抛出的
    Stack: [0x43c30000,0x43c80000],  sp=0x43c796c4,  free space=12543c791f8kNative frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)C  [AspriseOCR.dll+0x2ff10] [error occurred during error reporting (printing native stack), id 0xc0000005] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)j  com.asprise.util.ocr.OCR.performOCR(Ljava/awt/image/RenderedImage;I)Ljava/lang/String;+0j  com.asprise.util.ocr.OCR.processString(Ljava/awt/image/RenderedImage;ILjava/lang/String;Ljava/lang/String;)Ljava/lang/Object;+27j  com.asprise.util.ocr.OCR.recognizeEverything(Ljava/awt/image/RenderedImage;)Ljava/lang/String;+7j  com.ode.getCode(Lorg/apache/http/client/HttpClient;)Ljava/lang/String;+49j  com.ong.loginRequest(Ljava/lang/String;Ljava/lang/String;)Z+51j  com.ong.run()V+101j  java.lang.Thread.run()V+11v  ~StubRoutines::call_stub 这都是dll的啊~我java也没法调试啊!而且有时候崩溃有时候不崩溃,我都不知道怎么做了啊。
    ~你的qq是多少加你一下啊~或者你加我我的是:2605277035啊 
      

  15.   

    不是后台啊。wrapper只是一个启动工具我用wrapper启动的是一个java awt的界面啊。所以这是正常的啊。
      

  16.   

    要么你用jconsole工具看一下嘛,看看是哪部分内存不够用。在java/bin下
      

  17.   


    =================================
    楼主为这个发了很多贴子了,弄个上面说的工具或jprofiler工具调测一下,
    看一下哪里占了你的内存,哪个地方出了问题,这样会更好找到原因。
    想必你也非常的着急了。