Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4364068

beans.ocx crashes whenever Java throws a java.lang.OutofMemoryError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.0
    • deploy
    • None
    • x86
    • windows_nt

      Customer's Problem description:
      ---------------------------------

      When we are using the server and doing load testing when ever Java throws a java.lang.OutofMemoryError, it crashes the beans.ocx.

      I wrote a small COM sample to call the bean. But whenever the Java returns OutOfMemoryError beans.ocx crashes the application. To reproduce

      1) Write a Java class which will take lot of memory
      2) Convert in to ActiveX
      3)Call that class repeatedly from another COM App

      That App will be crashing when ever Java returns
      java.lang.OutOfmemoryError. To easily reproduce you can set the -Xms -Xmx
      parameters very low.

      Attached is the jar file which will help you recreate the crash when
      OutOfMemoryError occurs.

      set the Java Run time Parameters in the Java Console -Xms5m -Xmx16m or
      something less to recreate the problem quickly.

      You need to call regsvr32 DialogServer.dll which will register the
      DialogServer bean and the COM Object ( D:\EngineLoadTest>regsvr32
      DialogServer.dll )

      Run D:\EngineLoadTest>runcom 25 ( increase this or decrease).

      We are using 1.3 Hotspot Client VM on Windows NT 4.0

            stanleyh Stanley Ho (Inactive)
            cprasadsunw Ck Prasad (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: