JVM freeze on SocketRead

Hi!
Try to explain my problem. I have a Servlet (call com.foo.core.ProxyServlet) which uses HttpUrLConnection (it's a proxy). The problem is : after a week all thread are frozen in the same method. Here the thread dump :
"ExecuteThread: '26' for queue: 'default'" daemon prio=5 tid=0x2589f8 nid=0x26 runnable [0xcd380000..0xcd381a38]
     at java.net.SocketInputStream.socketRead(Native Method)
     at java.net.SocketInputStream.read(SocketInputStream.java:86)
     at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
     at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
     at weblogic.net.http.MessageHeader.parseHeader(MessageHeader.java:132)
     at weblogic.net.http.HttpClient.parseHTTP(HttpClient.java:286)
     at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:282)
     at com.foo.core.ProxyServlet.performTask(proxyServlet.java:143)
     at com.foo.core.ProxyServlet.doPost(proxyServlet.java:63)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
     at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1302)
     at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1680)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)Here a part of the source code (where the thread stop)
     String uri = request.getParameter("uri");
     String sourceServlet = _HTTPServer + uri;
     String method = request.getMethod();
     URL url = new URL(sourceServlet);
     HttpURLConnection uc = (HttpURLConnection)url.openConnection();
     uc.setDoOutput(true);
     uc.setDoInput(true);
     uc.setUseCaches(false);
     uc.setAllowUserInteraction(false);
     uc.setRequestMethod(method);
     uc.connect();
     InputStream is = uc.getInputStream();I work with WebLogic 6.0 SP2 RP2, jdk1.3.0, Solaris 2.6
Thx for help
Simon Pierre NOLIN

Hi
The ProxyServlet is like a proxy : it receive data from client (GET and POST), ask the 'real' server, do some work with the response (if the response is in XML/XSL it will be transform to HTML) and send the HTML to the client.
As i said in the post, the problem occur after a week : every day one or two thread are frozen and gradually the JVM is frozen.
I will try to set the ouput to false and test. I think i can not rid the setRequestMethod
Simon Pierre NOLIN

Similar Messages

  • JRockit JVM Freezes on server start and WLST domain configuration

    Hi,
    Here is our configuration:
    OS:
    cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    uname -a
    Linux ********* 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
    rpm -qa | grep glibc
    glibc-2.5-34
    glibc-common-2.5-34
    glibc-2.5-34
    We are using WLS 10.3 with 64 bit OS and 64 bit JRockit JVM on Xeon system.
    The JVM freezes for about 10m when I am trying to start the server. I also see the same behavior when I am trying to create the domain using WLST. Here is the thread dump during the freeze. The JVM eventually recovers from this and continues processing. During domain configuration, the freeze happens when it is trying to write the domain files to disk. All writes are happening to local disk.
    ===== FULL THREAD DUMP ===============
    Mon Apr 20 18:37:41 2009
    BEA JRockit(R) R27.6.0-50_o-100423-1.6.0_05-20080626-2104-linux-x86_64
    "Main Thread" id=1 idx=0x4 tid=30539 prio=5 alive, in native
    at jrockit/io/FileNativeIO.readBytesPinned(Ljava/io/FileDescriptor;[BII)I(Native Method)
        at jrockit/io/FileNativeIO.readBytes(FileNativeIO.java:46)
        at java/io/FileInputStream.readBytes([BII)I(FileInputStream.java)
        at java/io/FileInputStream.read(FileInputStream.java:199)
        at sun/security/provider/NativePRNG$RandomIO.readFully(NativePRNG.java:185)
        at sun/security/provider/NativePRNG$RandomIO.implGenerateSeed(NativePRNG.java:202)
        ^-- Holding lock: java/lang/Object@0x8577948[biased lock]
    at sun/security/provider/NativePRNG$RandomIO.access$300(NativePRNG.java:108)
    at sun/security/provider/NativePRNG.engineGenerateSeed(NativePRNG.java:102)
    at java/security/SecureRandom.generateSeed(SecureRandom.java:495)
    at com/bea/security/utils/random/AbstractRandomData.ensureInittedAndSeeded(AbstractRandomData.java:83)
    ^-- Holding lock: com/bea/security/utils/random/SecureRandomData@0x95f5db0[recursive]
    at com/bea/security/utils/random/AbstractRandomData.getRandomBytes(AbstractRandomData.java:97)
    ^-- Holding lock: com/bea/security/utils/random/SecureRandomData@0x95f5db0[biased lock]
    at com/bea/security/utils/random/AbstractRandomData.getRandomBytes(AbstractRandomData.java:92)
    at weblogic/security/Salt.getRandomBytes(Salt.java:18)
    at weblogic/security/internal/encryption/JSafeSecretKeyEncryptor.decryptSecretKey(JSafeSecretKeyEncryptor.java:108)
    at weblogic/security/internal/encryption/JSafeEncryptionServiceImpl.<init>(JSafeEncryptionServiceImpl.java:206)
    at weblogic/security/internal/encryption/JSafeEncryptionServiceFactory.getEncryptionService(JSafeEncryptionServiceFactory.java:23)
    at weblogic/security/internal/SerializedSystemIni.getEncryptionService(SerializedSystemIni.java:214)
    at weblogic/security/internal/SerializedSystemIni.getExistingEncryptionService(SerializedSystemIni.java:240)
    at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
    at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java/lang/reflect/Method.invoke(Method.java:597)
        at weblogic/descriptor/DescriptorManager$SecurityServiceImpl$SecurityProxy.<init>(DescriptorManager.java:149)
        at weblogic/descriptor/DescriptorManager$SecurityServiceImpl$SecurityProxy.instance(DescriptorManager.java:137)
        at weblogic/descriptor/DescriptorManager$SecurityServiceImpl.isEncrypted(DescriptorManager.java:108)
        at weblogic/descriptor/internal/AbstractDescriptorBean._isEncrypted(AbstractDescriptorBean.java:968)
        at weblogic/management/configuration/SecurityConfigurationMBeanImpl.setCredentialEncrypted(SecurityConfigurationMBeanImpl.java:1557)
        at weblogic/management/configuration/SecurityConfigurationMBeanImpl.setCredentialEncryptedAsString(SecurityConfigurationMBeanImpl.java:781)
        at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
        at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java/lang/reflect/Method.invoke(Method.java:597)
        at com/bea/staxb/runtime/internal/util/ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
        at com/bea/staxb/runtime/internal/RuntimeBindingType$BeanRuntimeProperty.setValue(RuntimeBindingType.java:531)
        at com/bea/staxb/runtime/internal/MultiIntermediary.setValue(MultiIntermediary.java:80)
        at com/bea/staxb/runtime/internal/ByNameRuntimeBindingType$ElementQNameProperty.fill(ByNameRuntimeBindingType.java:348)
        at com/bea/staxb/runtime/internal/LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:139)
        at com/bea/staxb/runtime/internal/ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
        at com/bea/staxb/runtime/internal/AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:47)
        at com/bea/staxb/runtime/internal/LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:164)
        at com/bea/staxb/runtime/internal/LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
        at com/bea/staxb/runtime/internal/ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
        at com/bea/staxb/runtime/internal/AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:47)
        at com/bea/staxb/runtime/internal/UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:189)
        at com/bea/staxb/runtime/internal/UnmarshalResult.unmarshalDocument(UnmarshalResult.java:159)
        at com/bea/staxb/runtime/internal/UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
        at weblogic/descriptor/internal/MarshallerFactory$1.createDescriptor(MarshallerFactory.java:95)
        at weblogic/descriptor/BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:240)
        at weblogic/management/provider/internal/DescriptorManagerHelper.loadDescriptor(DescriptorManagerHelper.java:63)
        at weblogic/management/provider/internal/RuntimeAccessImpl$IOHelperImpl.parseXML(RuntimeAccessImpl.java:683)
        at weblogic/management/provider/internal/RuntimeAccessImpl.parseNewStyleConfig(RuntimeAccessImpl.java:268)
        at weblogic/management/provider/internal/RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:115)
        at weblogic/management/provider/internal/RuntimeAccessService.start(RuntimeAccessService.java:39)
        at weblogic/t3/srvr/ServerServicesManager.startService(ServerServicesManager.java:459)
        at weblogic/t3/srvr/ServerServicesManager.startInStandbyState(ServerServicesManager.java:164)
        ^-- Holding lock: java/lang/Class@0x939df30[biased lock]
    at weblogic/t3/srvr/T3Srvr.initializeStandby(T3Srvr.java:711)
    at weblogic/t3/srvr/T3Srvr.startup(T3Srvr.java:482)
    at weblogic/t3/srvr/T3Srvr.run(T3Srvr.java:440)
    at weblogic/Server.main(Server.java:67)
    at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
    -- end of trace
    <<Truncated for brevity>>
    ===== END OF THREAD DUMP ===============
    The same process works fine on a VM with the same OS. Any ideas what might be going on?
    Thanks,
    Chengi

    This does not look familiar to me. Download R27.6.3 and see if that works things out: http://www.oracle.com/technology/software/products/jrockit/index.html. If that does not help, I recommend you to report the issue to JRockit support (see how to below).
    Best Regards,
    Tuva
    JRockit PM
    How to report to JRockit support:
    You must register and file the issue on Metalink, http://metalink.oracle.com. Note that you must have purchased support to continue.
    If you have problems during the registration or filing you can call our support +1.800.223.1711* or 1-800-633-0738 directly.
    In case you have not purchased support call 1.800.833.3536* for support sales.
    More information on our support site: http://www.oracle.com/support/index.html.
    *) US numbers - for global technical support contacts see: http://www.oracle.com/support/contact.html

  • Frequent JVM freeze/crash

    From time to time our system freezes (can be after days or hours).
    We have been running on 1.5.0_04 and 1.5.0_05 both client and server (on x86 machine).
    We have a lot of file IO and other JNI (custom) calls.
    We've been trying many thing to get it going again...
    One thing (killing of the external JNI related tasks) sometimes causes the JVM to crash (not every time - sometimes it actually gets going again - and sometimes it just keeps on freezing).
    All crash logs say the same:
    EXCEPTION_ACCESS_VIOLATION (0xc0000005)
    Which isn't the most descriptive message :-(
    The stack trace (when running in client mode) is as follows:
    C 0x080c45f6 (differs from occurence to occourence)
    V [jvm.dll+0x11d08a]
    V [jvm.dll+0x11d22a]
    V [jvm.dll+0x11cfbf]
    C [MSVCRT.dll+0x2a3b0]
    C [kernel32.dll+0xb50b]
    Every thread is threadblocked, except "main" which is threadin_native.
    The active thread is the VMThread.
    Does anybody have a clue to what the problem could be, or how to debug the jvm.dll (at least just to find out what the calls referenced in the stacktrace are)?

    Did you try JCopnsole to inspect the running JVM?
    You need to start the server with
    -Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.port=998
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=falseto be able to connect to a remote JVM.
    With JConsole you can inspect all running threads if they are blocked and who they are waiting for. You might find the cause of your freezes there ...
    If this doesn't help, use your application log (hope, your application uses some kind of logging like Java logging or Log4J ...) to inject more log messages at the suspicious classes/methods. This way you will find more infos in your log when the app freezes again.

  • JVM freeze with oci driver?

    An application that was working ok with oracle's thin driver started freezing with no obvious pattern when I switched to oci (9i on sunOS) - it can run a minute or days between freezes. There are multiple independent threads, and all of them freeze when this happens. Kill -3 does not produce a thread dump. Any ideas?

    PS - running "java -server -Xms128m -Xmx128m" with:
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
    Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

  • Jvm freezing

    im working on setting up a p2 computer with 256MB of ram with windows 98 as a battery backup monitor and the software thats used to monitor the battery is in java.
    when i go to start the software the computer just sits there. when i check the task manager to see whats up i see java as not responding. has any one else had this happen and if so how did you fix it?

    Did you write this java program?
    If so then you have a bug in it.
    If not then you need to talk to the vendor and tell them that they have a problem.

  • Orcale ConnectionCache problem

    Hi, we're running a web based e-mail system
    and think that we may have a problem with the
    Oracle ConnectionCache. Every now and then
    the cache can't create a new connection and
    thows an exception with the following message:
    The Network Adapter could not establish the connection
    After this has happened the JVM freezes, and
    no connections against the program itself can
    be made.
    We're using the following environment:
    SunOS ybmailin 5.7 Generic_106541-10 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
    Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit)
    Oracle 8.1.6 (classes12.zip).
    Christer

    This happened for me too.
    It means that oracle database is shutdown. Login to Oracle database as SysDBA and Open/Mount the database.
    If this does not work, then restart the service for that database and try to open the database.

  • JVM: viseo display freezes

    I have an application written based on the FrameAccess example, which works fine except videos all freeze part way through.
    If I replace the FrameAccess object with one that uses a Player rather than a Processor no videos freeze. Using a Processer Object causes videos to fail, usually about 5 seconds in.
    If I try setting FLAG_NO_SYNC the video continues but with the same image, it does not proceed to the next frame.
    One other thing I tried was using FLAG_NO_SYNC and doing my own syncing. If I put a delay in the display (so it runs at 1/4 speed, for instance) it runs for a longer time, but still freezes eventually.
    My application only supports local video files, so there is no network delay. I only want the occasional frame image, so the process() method currently does nothing but move the data into the output buffer.
    I have searched the archives and found similar problems (http://forum.java.sun.com/thread.jspa?forumID=28&threadID=674034) but nothing with a solution.
    There are no errors reported, and no events - the Processer state is still in the Started state.
    Thanks for any suggestions

    Try creating a second account on your Mac called "guest" and run from that for a while. If the problem goes away, then there is something in you main account's configuration causing the problem. If the problem exists even under the guest account, you could be dealing with a hardware problem of some kind.

  • JVM screen freeze

    hi,
    i've been having this strange problem with java applets and applications. happens with all versions except the microsoft VM in IE. As soon as an applet opens or an app is launched, the screen freezes. I have to suspend and wake-up windows to restore. this happens even with the java control panel. the screen freezes again whenever the application/applet redraws/reloads. i have winxp pro running on an AMD 2600+ with 768MB RAM. i find this problem in all versions right from 1.4.1 till 1.5.0 update 4. please help me.

    Probably a graphics subsystem problem - try a different/newer/older video driver. And do some diagnostic troubleshooting and find out what program statement results in the freeze.

  • JDBC socketRead freezes the webserver

    Hi,
    today a webserver freezes, with more than 42 blocked threads, to inspect the problem i get a thread dump, from running instance, and the problematic thread is:
    "http-80-19" daemon prio=10 tid=0x0000002af8bbe000 nid=0x72fc runnable [0x000000004f45f000..0x000000004f460b30]
       java.lang.Thread.State: RUNNABLE
            at java.net.SocketInputStream.socketRead0(Native Method)
            at java.net.SocketInputStream.read(SocketInputStream.java:129)
            at com.sap.dbtech.rte.comm.BasicSocketComm.receiveConnect(BasicSocketComm.java:707)
            at com.sap.dbtech.rte.comm.BasicSocketComm.dbConnectExchange(BasicSocketComm.java:789)
            at com.sap.dbtech.rte.comm.BasicSocketComm.connectDB(BasicSocketComm.java:233)
            at com.sap.dbtech.rte.comm.SocketComm$1.open(SocketComm.java:38)
            at com.sap.dbtech.jdbc.DriverSapDB.openConnection(DriverSapDB.java:966)
            at com.sap.dbtech.jdbc.DriverSapDB.openByURL(DriverSapDB.java:891)
            at com.sap.dbtech.jdbc.DriverSapDB.connect(DriverSapDB.java:208)
            - locked <0x0000002aa4978bc0> (a com.sap.dbtech.jdbc.DriverSapDB)
            at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
            at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
            - locked <0x0000002aa515d318> (a org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
            at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    analysis of the thread dump, show us that is a problem when open new connections, and freezes on java.net.SocketInputStream.socketRead0, i checked the system and have space for more sessions, then its not a case of TASK LIMIT, follow is a sample of one thread waiting the above.
    "http-80-18" daemon prio=10 tid=0x0000002af7f74000 nid=0x72fb waiting for monitor entry [0x000000004ef5e000..0x000000004ef5fdb0]
       java.lang.Thread.State: BLOCKED (on object monitor)
            at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
            - waiting to lock <0x0000002aa515d318> (a org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
            at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    after 2 minutes, the problematic thread reach the end, and the webserver unfreeze, and come back processing requests.
    The MaxDB and JDBC version is 7.6.03.07
    note this problem dont occurs every time, or every day, just occurs in a random times, once per week, maybe have a reason on database side, that i dont know, any idea, how to check and inspect this type of problem?
    Best regards
    Clóvis

    Again, but in another place, when pool try to check if connection is Closed, this one, blocked 35 other threads, and freezes the webserver for 2 minutes.
    "Timer-1" daemon prio=10 tid=0x0000002af6ddf000 nid=0x3118 runnable [0x0000000047c48000..0x0000000047c48d30]
       java.lang.Thread.State: RUNNABLE
            at java.net.SocketInputStream.socketRead0(Native Method)
            at java.net.SocketInputStream.read(SocketInputStream.java:129)
            at com.sap.dbtech.rte.comm.BasicSocketComm.receiveData(BasicSocketComm.java:577)
            at com.sap.dbtech.rte.comm.BasicSocketComm.receive(BasicSocketComm.java:666)
            at com.sap.dbtech.rte.comm.JdbcCommunication.execute(JdbcCommunication.java:41)
            at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:536)
            - locked <0x0000002aad5d66b0> (a com.sap.dbtech.jdbc.ConnectionSapDB)
            at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:461)
            at com.sap.dbtech.jdbc.ConnectionSapDB.isClosed(ConnectionSapDB.java:746)
            at com.sap.dbtech.jdbc.trace.Connection.isClosed(Connection.java:400)
            at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.isClosed(DelegatingConnection.java:346)
            at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:324)
            at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.java:312)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.evict(GenericObjectPool.java:1217)
            - locked <0x0000002aa4a60cb0> (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Evictor.run(GenericObjectPool.java:1341)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)
       Locked ownable synchronizers:
            - locked <0x0000002aa4a60cb0> (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Evictor.run(GenericObjectPool.java:1341)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)
       Locked ownable synchronizers:
            - None

  • Java freezes safari

    I've read through a few other discussions on this site trying to figure out why my financial web page freezes when it tries to load a java program to do stock trading. The people at Schwab are clueless about macs.
    I notice on my hard drive, that i have two different copies of the java plugin 1.4.2_9 and 1.3.1. Should i trash the older version? I also notice in my Safari help file, that both are listed, in various palces.
    I emptied the caches for both java files, and did all the usual file and safari torubleshooting. anybody have any other suggestions?

    Streetsmart.com does not freeze Safari for me - but it is not working either. I had a similar problem when I first got this Mac - in November, and was told by Schwab to reset Safari, then restart my computer - and it worked. However, I have tried that this time, and it does not. From my Schwab account page - I click the StreetSmart.com icon, and it goes into the testing phase. The test comes back - JVM failed. (everything else passes) However, when I test the JVM on another website, it passes. Also - when I try the Schwab simulation of StreetSmart (which uses day old data) it works fine. I saw in another discussion group that someone else was having problems with JVM - When comparing plug-ins - he found the following:
    "The only difference that I found was under Safari/Help/Installed Plug-ins.
    The userid that properly loaded the java apps had only one plug-in.
    Java plug-in for cocoa 1.4.2_09
    The userid that didn't load the java apps had three plug-ins.
    Java 1.3.1 plug-in CFM
    Java 1.3.1 plug-in
    Java plug-in for cocoa 1.4.2_09"
    I find that I have the three plug-ins as well. Is that the same for you?
    PowerBookG4   Mac OS X (10.4.6)  

  • JNI for C and computer freezes

    I have C code that uses JNI to create a JavaVM and calls my GUI class that creates a Java Swing GUI. This is the code that I use to invoke the JVM:
    JNIEnv *env;
    JavaVM *jvm;
    JavaVMInitArgs vm_args;
    JavaVMOption options[1];
    int nbOptions;
    jint res;
    jclass myJavaClass;
    jmethodID javaGUI, libraryID;
    jmethodID constructorID, guiID;
    vm_args.version = JNI_VERSION_1_2;
    vm_args.nOptions = 1;
    options[0].optionString = "-Djava.class.path=/root/pV3/FinalpV3";
    vm_args.options = options;
    vm_args.ignoreUnrecognized = JNI_FALSE;
    res = JNI_CreateJavaVM(&jvm, (void **)&env, &vm_args);
    if (res < 0) printf("can't create Java VM\n");
    myJavaClass = (*env)->FindClass(env, "Starter");
    if(myJavaClass == 0) printf("can't find Java Class\n");
    guiID = (*env)->GetStaticMethodID(env, myJavaClass, "start", "()V");
    if(guiID == 0) printf("can't find start() ID\n");
    (*env)->CallStaticVoidMethod(env, myJavaClass, guiID);
    However, when I run the C code and (in turn) it creates the Java Swing GUI, if I mess around with the GUI my entire linux machine stalls. Just from experimenting, however, if I don't touch the GUI (i.e. click the buttons and stuff) the program will not freeze my machine. I am not sure the cause of this. I noticed that there is code to destroy the JVM, but do I need to call this?
    Does anyone know what's going on?

    JNI is to call C.
    JNI can call functions written in C++ if the functions are specified as having C linkage.
    Any other language can be called if you can write a C "wrapper" which in turn calls into the other language.

  • Memory leak in JVM 1.3.1

    Hi,
    I'm using the following set up
    OS: Redhat linux 7.1
    Kernel: 2.4.2-1
    glibc-2.1.x for i386
    other set up: ulimit -s 2048, JDK 1.3.1_01
    app: Jboss app server
    I'm running my application in Jboss 2.2.1 which is a I/O intensive. This is a distributed system using visigenic corba 4.5.
    The problem:
    If I run my application the application memory remains stable over a period of time but my JVM memory (system) increases linearly. i got the app memory using : Runtime.getRuntime().totalMemory()
    and JVM memory using : top
    Is the JVM leaking ??? I'm not getting OutOfMemeory error anywhere but my system freezes when it reaches a point where it cannot allocate more memory to java process
    Reg
    Ved

    Freezes? You mean that it stops running at 8 at night and when you come in at 8 the next morning it is still doing nothing? Or that it stops for several minutes?
    Memory problems are not usually the cause of this. Some possibilites:
    -Blocked, deadlocked, threads.
    -Blocked io.
    -Endless spins (code runs but does nothing.)
    -JNI code.

  • System freezes (x64, java)

    Hi!
    Since the complete system upgrade (done today) of my x64 arch box I cannot use Eclipse
    Whenever I run Eclipse (it opens normally, workspace looks fine) it completely freezes my entire (mouse cursor is not moving, can't switch to any other VC nor use the alt+ctrl+backspc) box so I have to hardreset it. Same happens when I try to run the NetBeans IDE installation sh script. However simple Java GUI programs runs all right.
    I'm running gnome, compizfusion (on nvidia), virtualbox, sun jre (64bit), eclipse (the linux 64bit version). (everything is in the newest version since the upgrade)
    I don't know how to get any other data from the crash since everything stops responding. I can't find any crash dump on the FS.
    Can anybody give any hints what to do now?
    Thx in advance.

    Hello.
    /var/log/everything.log:
    Oct 4 18:40:10 brzydal gnome-session[3271]: WARNING: Unable to determine session: Unable to lookup session information for process '3271'
    Oct 4 18:40:16 brzydal kernel: fuse init (API version 7.11)
    Oct 4 18:51:46 brzydal gnome-session[3271]: WARNING: Unable to determine session: Unable to lookup session information for process '3271'
    Oct 4 18:51:52 brzydal gnome-session[3271]: WARNING: Unable to determine session: Unable to lookup session information for process '3271'
    (here system crashed)
    Oct 4 19:12:36 brzydal syslog-ng[2946]: syslog-ng starting up; version='3.0.4'
    so nothing suspicious there. (I'm not using GDM, it is installed however the deamon is never started)
    /var/log/Xorg.0.log:
    Only two (EE) saying can't load type1 and freetype modules -- I will try to fix this :-)
    I'm using:
    X.Org X Server 1.6.3.901 (1.6.4 RC 1)
    Release Date: 2009-8-25
    Build Operating System: Linux 2.6.30-ARCH x86_64
    Current Operating System: Linux brzydal.lan 2.6.30-ARCH #1 SMP PREEMPT Fri Jul 31 07:30:28 CEST 2009 x86_64
    Build Date: 04 September 2009 05:45:43PM
    (--) PCI:*(0:1:0:0) 10de:0421:1043:8264 nVidia Corporation G86 [GeForce 8500 GT] rev 161, Mem @ 0xfd000000/16777216, 0xd0000000/268435456, 0xfa000000/33554432, I/O @ 0x0000dc00/128, BIOS @ 0x????????/131072
    (II) NVIDIA GLX Module 185.18.36 Fri Aug 14 18:27:24 PDT 2009
    (II) Loading /usr/lib/xorg/modules/drivers//nvidia_drv.so
    (II) Module nvidia: vendor="NVIDIA Corporation"
    compiled for 4.0.2, module version = 1.0.0
    Module class: X.Org Video Driver
    (II) NVIDIA dlloader X Driver 185.18.36 Fri Aug 14 17:51:02 PDT 2009
    (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    Since the 4th of October (sys upgrade) the system is working perfectly stable until I start Java Apps...
    After disabling the SWT browser in eclipse i managed to run it. (I cleared MOZILLA_FIVE_HOME, LD_LIBRARY_PRELOAD and passed -Dorg.eclipse.swt.browser.XULRunnerPath= to jvm) But after trying netbeans installation everything freezed again and after restart lilo can't load kernel so I'll have to restore my box now...
    It seems like an error somewhere between MOZILLA, SWT & JAVA but I have no idea why it kills the kernel (maybe I'll try to downgrade it...?)
    Last edited by kryr (2009-10-13 20:59:43)

  • AS Map viewer install freezing -

    Hi All -
    I am new to this so bear with me. Several times I have tried to install Map Viewer on 10g. I started with the Java SDK and created a stand alone instance of jre1.6.0_03. Then with the Quiklaunch AS Mapviewer download kit tried to install map viewer, setting ORACLE_HOME and JAVA_HOME as described, and then running the oc4j -start command. It launches fine and begins churning away but always freezes at the following line :
    [oracle.lbs.mapserver.core.MapRecycleThread,
    #Thread-201] celansing old maps
    any ideas?

    Here is the error log for the above.....
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0156f00e, pid=6012, tid=5776
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # J EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap$HashIterator.hasNext()Z
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x03846800): JavaThread "shutdownHookThread" [_thread_in_Java, id=5776]
    siginfo: ExceptionCode=0xc0000005, reading address 0xa3e4899f
    Registers:
    EAX=0x23e489a0, EBX=0x28ffa028, ECX=0x23400690, EDX=0x28ffa630
    ESP=0x04fff780, EBP=0x04fff798, ESI=0x23e489a0, EDI=0x00000015
    EIP=0x0156f00e, EFLAGS=0x00010212
    Top of Stack: (sp=0x04fff780)
    0x04fff780: 23400690 04fff784 28ff91b8 04fff7ac
    0x04fff790: 28ff9718 00000000 04fff7d8 013033b9
    0x04fff7a0: 04fff7ac 28ffa618 013033b9 23400690
    0x04fff7b0: 00000009 23e19488 04fff7b0 2891aa87
    0x04fff7c0: 04fff7f8 289a9568 00000000 2891ad98
    0x04fff7d0: 04fff7ac 04fff7f8 04fff824 01302cb1
    0x04fff7e0: 00000000 00000000 00000000 00000000
    0x04fff7f0: 23400690 23e19488 23e17870 00000005
    Instructions: (pc=0x0156f00e)
    0x0156effe: 66 90 8b 71 0c 83 fe 00 0f 84 67 00 00 00 3b 06
    0x0156f00e: 8b be ff ff ff 7f 83 ff 00 0f 85 a0 00 00 00 3b
    Stack: [0x04fb0000,0x05000000), sp=0x04fff780, free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    J EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap$HashIterator.hasNext()Z
    j com.evermind.server.http.HttpApplication.destroyServlets()V+23
    j com.evermind.server.http.HttpApplication.destroy()V+182
    j com.evermind.server.http.HttpSite.destroy(Z)V+60
    j com.evermind.server.http.HttpServer.destroy(Ljava/lang/String;)V+73
    j com.evermind.server.ApplicationServer.destroy(Ljava/lang/String;)V+325
    j com.evermind.server.ApplicationServerShutdownHandler.run()V+177
    j java.lang.Thread.run()V+11
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    =>0x03846800 JavaThread "shutdownHookThread" [_thread_in_Java, id=5776]
    0x03845400 JavaThread "SIGINT handler" daemon [_thread_blocked, id=2816]
    0x03846000 JavaThread "Thread-20" daemon [_thread_blocked, id=3884]
    0x03fca800 JavaThread "Thread-19" daemon [_thread_blocked, id=5240]
    0x03847400 JavaThread "DestroyJavaVM" [_thread_blocked, id=5176]
    0x03846c00 JavaThread "TaskManager" [_thread_blocked, id=4768]
    0x03845000 JavaThread "Timer-6" [_thread_blocked, id=2444]
    0x03844800 JavaThread "Timer-5" [_thread_blocked, id=1076]
    0x03844400 JavaThread "SystemThreadGroup-6" [_thread_blocked, id=632]
    0x03844000 JavaThread "SystemThreadGroup-5" [_thread_blocked, id=4524]
    0x03843800 JavaThread "SystemThreadGroup-4" [_thread_blocked, id=5460]
    0x03843400 JavaThread "Timer-4" [_thread_blocked, id=5600]
    0x03842c00 JavaThread "Timer-3" [_thread_blocked, id=3644]
    0x03842000 JavaThread "Timer-1" daemon [_thread_blocked, id=2156]
    0x03841000 JavaThread "WorkExecutorWorkerThread-1" daemon [_thread_blocked, id=1728]
    0x03842800 JavaThread "Thread-9" daemon [_thread_blocked, id=5216]
    0x03841c00 JavaThread "Timer-0" [_thread_blocked, id=4916]
    0x03840c00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3896]
    0x03840400 JavaThread "RMIServer [0.0.0.0:23943] count:1" [_thread_in_native, id=2216]
    0x03840000 JavaThread "RMIServer [0.0.0.0:23791] count:1" [_thread_in_native, id=5444]
    0x0383f800 JavaThread "JMSServer[BlueSky-pm:9127]" [_thread_in_native, id=5564]
    0x03adf800 JavaThread "WsMgmtWorkScheduler" daemon [_thread_blocked, id=4328]
    0x03adf400 JavaThread "WsMgmtWorkScheduler" daemon [_thread_blocked, id=268]
    0x03c92000 JavaThread "Timer ServiceThread" [_thread_blocked, id=4212]
    0x03c91c00 JavaThread "Scheduler ServiceThread" [_thread_blocked, id=2164]
    0x03a6fc00 JavaThread "Event ServiceThread" [_thread_blocked, id=5796]
    0x011d9400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3680]
    0x011d2000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1892]
    0x011d1000 JavaThread "Attach Listener" daemon [_thread_blocked, id=1100]
    0x011d0c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5816]
    0x011c8000 JavaThread "Finalizer" daemon [_thread_blocked, id=5744]
    0x011bf400 JavaThread "Reference Handler" daemon [_thread_blocked, id=3988]
    Other Threads:
    0x011be400 VMThread [id=4456]
    0x011d9c00 WatcherThread [id=6056]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 1344K, used 1036K [0x23320000, 0x23490000, 0x23800000)
    eden space 1216K, 74% used [0x23320000, 0x234032c8, 0x23450000)
    from space 128K, 100% used [0x23450000, 0x23470000, 0x23470000)
    to space 128K, 0% used [0x23470000, 0x23470000, 0x23490000)
    tenured generation total 16624K, used 10912K [0x23800000, 0x2483c000, 0x27320000)
    the space 16624K, 65% used [0x23800000, 0x242a80e8, 0x242a8200, 0x2483c000)
    compacting perm gen total 30464K, used 30282K [0x27320000, 0x290e0000, 0x2b320000)
    the space 30464K, 99% used [0x27320000, 0x290b2800, 0x290b2800, 0x290e0000)
    ro space 8192K, 66% used [0x2b320000, 0x2b86f860, 0x2b86fa00, 0x2bb20000)
    rw space 12288K, 52% used [0x2bb20000, 0x2c16f078, 0x2c16f200, 0x2c720000)
    Dynamic libraries:
    0x00400000 - 0x00423000      c:\java\jdk1.6.0_03\bin\java.exe
    0x77530000 - 0x7764e000      C:\Windows\system32\ntdll.dll
    0x76ea0000 - 0x76f78000      C:\Windows\system32\kernel32.dll
    0x76010000 - 0x760cf000      C:\Windows\system32\ADVAPI32.dll
    0x75e90000 - 0x75f53000      C:\Windows\system32\RPCRT4.dll
    0x7c340000 - 0x7c396000      c:\java\jdk1.6.0_03\jre\bin\msvcr71.dll
    0x6d870000 - 0x6daba000      c:\java\jdk1.6.0_03\jre\bin\client\jvm.dll
    0x75f60000 - 0x75ffe000      C:\Windows\system32\USER32.dll
    0x75df0000 - 0x75e3b000      C:\Windows\system32\GDI32.dll
    0x73c90000 - 0x73cc3000      C:\Windows\system32\WINMM.dll
    0x77310000 - 0x773ba000      C:\Windows\system32\msvcrt.dll
    0x77190000 - 0x772d4000      C:\Windows\system32\ole32.dll
    0x774a0000 - 0x7752c000      C:\Windows\system32\OLEAUT32.dll
    0x73c50000 - 0x73c88000      C:\Windows\system32\OLEACC.dll
    0x77170000 - 0x7718e000      C:\Windows\system32\IMM32.DLL
    0x77050000 - 0x77117000      C:\Windows\system32\MSCTF.dll
    0x75c20000 - 0x75c4c000      C:\Windows\system32\apphelp.dll
    0x76000000 - 0x76009000      C:\Windows\system32\LPK.DLL
    0x77420000 - 0x7749d000      C:\Windows\system32\USP10.dll
    0x6d3c0000 - 0x6d3c8000      c:\java\jdk1.6.0_03\jre\bin\hpi.dll
    0x75de0000 - 0x75de7000      C:\Windows\system32\PSAPI.DLL
    0x6d820000 - 0x6d82c000      c:\java\jdk1.6.0_03\jre\bin\verify.dll
    0x6d460000 - 0x6d47f000      c:\java\jdk1.6.0_03\jre\bin\java.dll
    0x6d860000 - 0x6d86f000      c:\java\jdk1.6.0_03\jre\bin\zip.dll
    0x6d620000 - 0x6d633000      C:\java\jdk1.6.0_03\jre\bin\net.dll
    0x76ba0000 - 0x76bcd000      C:\Windows\system32\WS2_32.dll
    0x77650000 - 0x77656000      C:\Windows\system32\NSI.dll
    0x75470000 - 0x754ab000      C:\Windows\system32\mswsock.dll
    0x754e0000 - 0x754e6000      C:\Windows\System32\wship6.dll
    0x75080000 - 0x7508f000      C:\Windows\system32\NLAapi.dll
    0x75700000 - 0x75719000      C:\Windows\system32\IPHLPAPI.DLL
    0x756c0000 - 0x756f5000      C:\Windows\system32\dhcpcsvc.DLL
    0x758e0000 - 0x7590b000      C:\Windows\system32\DNSAPI.dll
    0x75c80000 - 0x75c94000      C:\Windows\system32\Secur32.dll
    0x756b0000 - 0x756b7000      C:\Windows\system32\WINNSI.DLL
    0x75690000 - 0x756b0000      C:\Windows\system32\dhcpcsvc6.DLL
    0x72010000 - 0x72018000      C:\Windows\System32\winrnr.dll
    0x77120000 - 0x77169000      C:\Windows\system32\WLDAP32.dll
    0x72000000 - 0x7200f000      C:\Windows\system32\napinsp.dll
    0x71fc0000 - 0x71fd2000      C:\Windows\system32\pnrpnsp.dll
    0x73040000 - 0x73046000      C:\Windows\system32\rasadhlp.dll
    0x753a0000 - 0x753d8000      C:\Windows\system32\rsaenh.dll
    0x75ca0000 - 0x75cbe000      C:\Windows\system32\USERENV.dll
    0x6d640000 - 0x6d649000      C:\java\jdk1.6.0_03\jre\bin\nio.dll
    0x75150000 - 0x75156000      C:\Windows\System32\wshtcpip.dll
    0x6d800000 - 0x6d808000      C:\java\jdk1.6.0_03\jre\bin\sunmscapi.dll
    0x75760000 - 0x75851000      C:\Windows\system32\CRYPT32.dll
    0x758a0000 - 0x758b2000      C:\Windows\system32\MSASN1.dll
    0x6d0b0000 - 0x6d273000      C:\java\jdk1.6.0_03\jre\bin\awt.dll
    0x72580000 - 0x725c1000      C:\Windows\system32\WINSPOOL.DRV
    0x733b0000 - 0x733ef000      C:\Windows\system32\uxtheme.dll
    0x6d360000 - 0x6d3b3000      C:\java\jdk1.6.0_03\jre\bin\fontmanager.dll
    VM Arguments:
    java_command: c:\mv10131_qs\oc4j\j2ee\home\oc4j.jar -config c:\mv10131_qs\oc4j\j2ee\home\config\server.xml
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=c:\java\jdk1.6.0_03
    PATH=E:\oracle\product\10.2.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\hp\bin\Python;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\

  • Specifying default GC at JVM startup

    Hi there, I'm monitoring my company's intranet with JConsole running on jdk 1.5. The intranet has about 3000 users who log on about every day, so it has a lot of traffic.
    Sometimes, during performance peek, the memory reaches about 370 megs ( My maximum heap size as well as my startup heap size is set to 370 megs ). When the memory reaches the maximum size, the memory drops while I'm getting tomcat messages that the pool is exhausted with 100 threads. I tried changing the maximum value of threads to 200 instead of 100 but it does help; the intranet still freezes but at least I'm not getting those tomcat messages... So it doesn't help a lot.
    I noticed, in JConsole, that the default GC that is run automatically is PS Scavenge. From the console, I can run the GC manually and it executes the PS MarkSweep algorithm. I noticed that MarkSweep is much more efficient than Scavenge. Is it possible to specify to the JVM to use MarkSweep by default? Therefore the memory would not reach the maximum size or at least it would reach it less often ( Actually my intranet freezes about 3 to 4 times a day, during peek activity ) Would that be a good idea? Is it even possible to do it?
    I'm open to all your suggestions,
    Thanks a lot
    Alexandre Folgueras
    [email protected]

    Hello
    Here are some references that should help inform you about the different collectors
    and the tuning choices you can consider:
    Performance Documentation for the Java HotSpot VM
    http://java.sun.com/docs/hotspot/index.html
    Ergonomics in the 5.0 Java Virtual Machine
    http://java.sun.com/docs/hotspot/gc5.0/ergo5.html
    Tuning Garbage Collection with the 5.0 Java Virtual Machine
    http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
    "Troubleshooting Guide for J2SE 5.0",
    http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf

Maybe you are looking for

  • 24" iMac Can't Boot OS X Install Discs

    I have a 24" iMac (A1225). I can boot to non-Apple discs (utilities, Windows) and I can even install Windows without any problems. I can't boot to any OS X Install disc however. I have the original 10.5 discs, they don't boot. I have a 10.7 disc that

  • Random JCO Communication Failure Error

    Dear All, I am facing the weird issue of JCo connection failures. I am facing the error of Max no of conversations excedeed. If i am testing it then it is giving me error. But after some time if i check it again it will be successful and also ping wi

  • How to check for Unicode/Non-Unicode SAP?

    Hi All, Please let me know how can I check whether an SAP system is a Unicode/Non-Unicode from SAP GUI? Thanks in advance, Adarsh

  • Calculator can't make percentages

    Hello. Quick question: My mobile phone calculates 100 * 10% = 10 To my iBook's Calculator 100 * 10% = 0.1 The iBook as far as I can remember used to give me the same answer as my mobile phone. How can I change this back? I have already deleted com.ap

  • Can't get GUI to appear on desktop from iTunes or Quicktime

    I was running a Mirrored Door 867 dual with 10.39 and PT 6.41. I had QT 7.1 and itunes 7 and they would run but not display on the desktop. I'd go to force quit and there they would be running but not showing on the screen. I thought it was just my s