Multiple javaw.exe processes

I've been working with Java on the Mac platform for quite a while now, but we've been noticing a Windows XP problem at work that is over my head:
"A javaw.exe process is launched each time I start the app. Quitting the program does not kill the javaw.exe process. After starting and quitting the app a number of times, my system's performace really starts to degrade. I have to manually kill all of the javaw.exe processes to liberate my RAM. "
Normally we open it just by double-clicking the jar file (since it has a manifest in it), but we've also resorted to using the console the open it. Nothing seems to make a difference.
I'm positive that System.exit(0) is being called after I save everything and close all my windows (I added console output to verify that).
Am I misusing System.exit()? Does anyone have any experience with this problem, or knowledge of the subject?

i don't believe that System.exit() is called. just
insert a Syste,.out.println() just before
System.exit() to check if it is really called.I already did. (That's why I said before "I'm positive it's called".)
This took days to hunt down, but today we finally figured it out (and a work-around):
The problem was a shutdown hook. (See Runtime.getRuntime().addShutdownHook(). )
I use them to save preferences, write an error log, and close up QuickTIme.
Apparently on Windows if you call QTSession.close() in a shutdown hook, the thread blocks. And any shutdown hook that blocks will keep the JVM from closing -- so if you're experience a similar problem check your shutdown hooks. And pray to the great computing gods in the sky that you're not using packages that abuse their own shutdown hooks.
I suspect the problem is that QuickTimeJava added its own shutdown hook, putting a synchronization lock on the ability to edit the current state of QTSessions. I say this because I could safely call: QTSession.isInitialized(), but QTSession.close() or QTSession.terminate() caused a deadlock.
The workaround:
My code now says:
MovieUtilities.shutdown();
System.exit(0);
where the method shutdown is simply:
//note that there might be several QTSession's open
while(QTSession.isInitialized()) {
     QTSession.close();
This keeps Windows machines from blocking, and the javaw.exe processes terminate normally.

Similar Messages

  • Multiple oracle exe process

    Hi,
    I am using 10.2.0.1.0, 64 bit version on windows.
    In our schema if we execute one query multiple oracle exe process are created for same query. Nearly 20 process are created. I am seeing this result on toad session browser.
    Could any one tell me why these much of process are creating.
    Thanks,
    Ratna.

    Looks like parallel query.
    For more info see Oracle® Database Data Warehousing Guide Chapter 25 Using Parallel Execution here
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14223/usingpe.htm#i1009828
    Gints Plivna
    http://www.gplivna.eu

  • Acrobat X intermittently won't launch, multiple Acrobat.exe processes hanging in task manager

    Apologies if this is in the wrong community area - I was unsure where it belongs.
    This is an intermittent issue, but does happen several times a day.
    Regardless of what method is used to launch Acrobat (double-clicking a PDF, clicking the shortcut in the taskbar, selecting Acrobat from the start menu), often the application won't launch. Upon investigation, task manager shows multiple instances of Acrobat.exe, although the application is not running (see the image below). Ending all Acrobat.exe processes does allow Acrobat to launch.
    Any thoughts as to what might be causing this, as well as a more permanent fix? The workaround of constantly ending multiple processes is becoming cumbersome.
    We are running Acrobat X Pro in Windows 7. I also have several CC 2014 apps installed (as well as a couple of earlier versions required for plugin functionality).

    This happens all the time in my company with several installs of Acrobat.
    The only way to fix this for us is to end each process in Task Manager as you have pointed out.
    It is very time consuming in our workflow as we each operator deals with hundreds of PDFs daily, and has to do this End Process procedure several times a day.
    We have done several tests and nothing seems to stop this from happening.

  • ASDM with javaw.exe process 90% CPU usage

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;
    mso-fareast-language:EN-US;}
    Dear all,
    I had ASDM 6.2 with ASA 8.2 installed on my pc (windows 7 32 bit). When I launch ASDM process go to 80-90% and my RAM go to 2.5G. when I am looking on the process on the task manager there is a process “javaw.exe” linked with ASDM.
    I have done a lot of search on the google/SUN site and forums but I didn’t found anything to resolve this issue.
    Have someone had or have some issue with ASDM? Or have you the solution for this issue?
    Thanks a lot
    Note: I upgraded my ASDM to the latest version 6.4 but still have same issue.

    Hi Jazaib,
    As other said, you need to find out what was changed. In additional to environment/load changes, extra load could be triggered by suboptimal execution plans due to parameter sniffing and/or stale statistics. For example, you can have the situation when frequently
    executed query was recompiled using atypical parameter set and cached plan leads to much heavier I/O CPU activity.
    Other factor that often lead to CPU load is bad T-SQL code (multistatement UDF, imperative code, cursors) so check your application.
    You can also run the script below, which returns you the information on most CPU intensive queries in scope of the cached plans. Alternatively, you can setup XEvent/SQL Trace sessions capturing statements with cpu_time exceeding some duration.
    SELECT TOP 50
    SUBSTRING(qt.TEXT, (qs.statement_start_offset/2)+1,
    CASE qs.statement_end_offset
    WHEN -1 THEN DATALENGTH(qt.TEXT)
    ELSE qs.statement_end_offset
    END - qs.statement_start_offset)/2)+1) as SQL,
    qs.execution_count,
    (qs.total_logical_reads + qs.total_logical_writes) / qs.execution_count as [Avg IO],
    qp.query_plan,
    qs.total_logical_reads, qs.last_logical_reads,
    qs.total_logical_writes, qs.last_logical_writes,
    qs.total_worker_time / qs.execution_count as [Avg CPU],
    qs.total_worker_time,
    qs.last_worker_time,
    qs.total_elapsed_time/1000 total_elapsed_time_in_ms,
    qs.last_elapsed_time/1000 last_elapsed_time_in_ms,
    qs.last_execution_time
    from
    sys.dm_exec_query_stats qs with (nolock)
    cross apply sys.dm_exec_sql_text(qs.sql_handle) qt
    outer apply sys.dm_exec_query_plan(qs.plan_handle) qp
    order by -- or vy qs.total_worker_time desc
    [Avg CPU] desc
    option (recompile)
    Thank you!
    Dmitri V. Korotkevitch (MVP, MCM, MCPD)
    My blog: http://aboutsqlserver.com

  • PS CS5 Std - Multiple Photoshop.exe Processes Seen Running

    Interesting.  On a couple of occasions I have spotted more than one Photoshop.exe process running in Task Manager.  It was a curiosity and I ignored it, thinking perhaps Adobe was doing something special to split up the work.
    Today, when updating to Camera Raw 6.1, I saw the message that follows:
    Sure enough, even though I had closed the Photoshop application I started the update from, there was a Photoshop.exe *32 running.  Killing that process yielded success with the update, but given that I have read several accounts where people have said they've seen the above error as well, I wonder whether there's a systemic problem with PS CS5.
    I have Photoshop CS5 on Windows 7 x64 Ultimate.  My system is stable otherwise, clean of malware and well maintained.
    I realize the Windows environment is one in which anything can and does happen, and believe me I will be checking the health of my system in every way I can, but given that I carefully maintain this system I ask that you please don't discount this problem as a one-off on my particular computer because of something specific I have that's gone wrong.
    Those of you running an x64 OS, please start your Task Manager, Processes tab.  Do you see more than one Photoshop.exe (or a Photoshop.exe process when you're not running it).
    -Noel

    No, whatever variant (32 bit or 64 bit) you started stays running.  Normally an attempt to start either one afresh brings the currently running variant to the top.  For a very brief period both are running, but I assume the second one up discovers that the first one is running and just activates it.
    I have just reproduced the problem, by the way... After a fair bit of editing I was running the Genuine Fractals 6.04 plugin and the plugin trapped out.  Now there is an "orphan" Photoshop.exe *32 process just sitting there, with no window...  It's not actively using any cpu time.
    I can't expect Adobe to be concerned about faults arising from 3rd party plugins trapping out, but I'm sure I've seen this issue without that happening.  I will report back if I see it again.
    -Noel

  • Opening PDF spawns multiple AcroRd32.exe processes.

    I have a user that when he opens any PDF he'll get 4 AcroRd32.exe process spawned the first time. When that one is closed, 2 of the 4 process end. When another PDF is opened, 2 processes start, but only one ends when the PDF is closed. So after 5 PDFs are opened and closed, 6 AcroRd32.exe processes are still running.
    So far all we've done is reinstalled Adobe Reader XI. Anything you guys know on how to fix it?

    Hi chubbcheese,
    Thank You for posting on the forums. Kindly help with the information listed below.
    1) Operating System
    2) Version of Reader (E.G.11.0.06)
    3) What kind of PDF is it, PDF producer
    Thanks,
    Vikrantt Singh

  • Runtime.getFreeMemory -relatively- static, javaw.exe growing.

    Hello. I have a J2SE app that I think it is leaking memory. It is mainly a GUI that connects to a DB. Thing is, if I repeatedly call the method getFreeMemory() from this app's runtime, it stays around the same value. Now, if I check the javaw.exe process in Windows' Task Manager, it keeps growing and growing.
    So, my question is: which of those two values are usually taken as the real memory usage of an app?
    Thanks!

    Look at total memory.
    Then check you are closing your Statements and ResultSets in finally blocks.

  • Big problem with 10.1.2.3 (javaw.exe)

    Hello all,
    On a single machine (WinXp), i have installed IAS 10.1.2.3 and an Oracle 9i Database.
    to make our Forms application working in standalone.
    As this is connected to the network all work pretty fine, but if i disconnect it, than lot of process javaw.exe are launched and run PC out of memory !
    This seems to be in relation with report process as the cmd is :
    = C:\oracle\FRHome_1\jdk\jre\bin\javaw -server -cp "C:\oracle\FRHome_1\j2ee\home\lib\ojsp.jar;C:\oracle\FRHome_1\reports\jlib\rwrun.jar;C:\oracle\FRHome_1\jlib\zrclient.jar" -Duser.language=fr -Duser.region=FR -Xmx256M oracle.reports.engine.RWEngine name=rwEng-0 server=rep_lio-xp_frhome1 ORACLE_HOME=C:\oracle\FRHome_1 engineimplclass=oracle.reports.engine.EngineImpl cacheDir=C:\web\cache\ server_ior="C:\DOCUME~1\LIO~1\LOCALS~1\Temp\rep_lio-xp_frhome1_12689643_1207124972762"
    Why this append ?
    and how can i make it not ? (whithout stoping report engine)
    I have made same some times on 10.1.2.0 and dunot have any problems !
    Thank's
    lionel

    re all,
    always same problem with 10.1.2.3 with javaw.exe process,
    is there a patch for this OAS version or any solution ... cause it's very very very strange and can't find a way to make it work .
    Thank's for reply

  • Renaming javaw.exe in task bar

    We're working on a nice big desktop application. All in Java. Working great.
    When we get lots of frames going, everything in the task bar gets condensed into "javaw.exe". Which WE understand... and we understand where & how that's chosen: it's the javaw.exe process running everything.
    But regular people will wonder where their windows went. Is there any way to adjust this property in Java (without JNI or native code)?
    If not, does anyone know of any pointers to JNI or native code that can do this simple thing?
    As a tidbit: ALL our frames are part of the same javaw.exe process. We're not spanning mulitple JVM's here.

    I'm not sure if I understand your problem, but if you want to change the javaw to something else, make a copy of the javaw.exe file and rename it to whatever you want and use that instead of javaw to start your app

  • Javaw.exe hangs on Win 2k

    I'm having a problem with j2sdk1.4.2_10 whereby whenever I try to run the install program for anything that uses java, they all hang right after the javaw.exe process appears. The installs unzip okay, then just disappear leaving javaw and the install program processes running. This is true for StyleReport Pro, Eclipse and others.
    Any ideas why it would just hang?

    The Oracle 8* universal installer will not run on a P4 unless your aquire the patched version, but oracle9i will work just fine on the P4...This also includes patches... As a work around in some situations the Oracle9i universal installer can be linked to the product.jar and initialized..."I have used this to patch 9i in order to install the 9iAS w/portal on the P4...

  • Send close/quit singal to javaw.exe

    Hi,
    we would send close/quit signal to an javaw.exe process. These signal don't trigger the shutdownHooks added to the vm. If we use a java.exe
    al is working as expected but a dos-box is opened on the screen.
    What is wrong?
    Yours R�diger

    Does really no one has this problem or is it so simple?

  • Memory grows in javaw.exe but not in java.exe process

    Hi,
    I'm testing some heavy emoticons(most of them are animated). Emoticons are shown in a popmenu, each emoticon is inside a JLabel with borders that are draw on mouse over. These JLabels are in a GridLayout.
    The test itself consists in pressing repeatly on a button that opens the popupmenu with emoticons many times.
    I noticed that this test, as a webstart app process (javaw.exe), makes the memory grow continously until someone (SO or JVM) thinks its time to free the mem.
    As a standalone app process (java.exe), mem does not grow - ok it grow about 3 MB and stabilizes
    Is there some good reason for this to happen?
    Thanks
    Edited by: maxupixu on Jul 1, 2010 7:30 AM
    Edited by: maxupixu on Jul 1, 2010 7:45 AM

    Hello,
    Metalink says that the OS is ok.
    But now i have found a workaround . I used the installer
    from the Oracle Designer patch 10.1.2.2 with the products.xml from the Oracle
    Developer Suite 10.1.2.0.2. The installation cancels at the end. Doesn't
    matter. I continue with the installation of the Oracle Designer patch 10.1.2.2.
    The installation is terminating successful, i correct the tnsnames.ora and the
    Designer is running.
    No award of beauty - but useable as a workaround.
    Greetings
    J. Häffner

  • Win8RP: Failed to create new process "...javaw.exe" - Invalid argument

    Hi all,
    we have a huge Java (JRE 6.0.310.5) app that works fine on the Win 8 CTP, but on RP:
    Failed to create new process "C:\Program Files (x86)\...\jre\bin\javaw.exe" - Invalid Argument
    Thanks for any insight
    G.

    Hi,
    Based on the error message 'Caused by: com.sap.engine.services.jmx.exception.JmxSecurityException: Caller J2EE_GUEST not authorized, only role administrators is allowed to access JMX' , this note shall solve this issue:
    948970 - Caller J2EE_GUEST not authorized, only role administrators
    Also check if the ADSUSER and ADS_AGENT have the correct password and the respective roles.
    944221  - Error analysis for problems in form processing (ADS)
    Which is your NW version?
    Regards,
    Lucas Comassetto.

  • EXCEL.EXE process is keep running even after closing all the handles

    I am using Excel Report Instrument functions  for creating excel application and sheet,workbook after reading/writing in to excel file am closing all the handles using CA_DiscardObjHandle (handle);     even after file is getting closed m checking it in TaskManager then one EXCEl.EXE process is keep running there,pls let me know how to deal with this....
    Solved!
    Go to Solution.

    A Kumar:
    Have you tried running the example program excelreportdemo.prj that ships with CVI?  It ends the excel process by discarding multiple handles, and it works even if you're editing a cell or have an Excel dialog open, etc.  Try running this without modification and verify that the excel process is closed when you quit the CVI app.
    Here's the Quit function from excelreportdemo.  It checks for and closes handles for the worksheet, chart, workbook, and excel application.
    int CVICALLBACK Quit (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
                if (worksheetHandle)
                    CA_DiscardObjHandle(worksheetHandle);
                if (chartHandle)
                    CA_DiscardObjHandle(chartHandle);
                if (workbookHandle)
                    ExcelRpt_WorkbookClose(workbookHandle, 0);
                    CA_DiscardObjHandle(workbookHandle);
                if (applicationHandle)
                    ExcelRpt_ApplicationQuit(applicationHandle);
                    CA_DiscardObjHandle(applicationHandle);
                QuitUserInterface (0);
                break;
        return 0;

  • How to handle spaces when calling javaw.exe or java.exe

    Hi guys, I'm in the process of releasing my application.
    My application need to make this system call on Windows.
    C:\Program Files\MySoftware\javaw.exe -jar C:\Program Files\MySoftware\myJar.jar C:\Program Files\MyDocs\MyArgumentFile
    this 'Program Files' for after the javaw.exe call: C:\Program Files\MySoftware\myJar.jar causes a problem because javaw.exe consider C:\Program as it's first argument and thus crash.
    I wonder what to do with this. I don't want to change it to C:\MySoftware since it looks unprofessional.
    A cup of Java, cheers

    yawmark wrote:
    I wonder what to do with this.Quotation marks.
    ~Right, every shell I can think of allows you to use quotation marks around a set of any characters that you want to be treated as one token. Note that this feature is a function of the shell you're using, not necessarily the system API. Also, many shells treat single quotes and double quotes differently, though they usually both accomplish the purpose of grouping what they contain into a single token.

Maybe you are looking for