Has UnixProcess been improved to use ThreadPoolExecutor to reduce threads

Hi all,
I am working on an application where hundreds or thousands of Unix process are created from Java application. The Unix process is an application running in the background with a UI interface. It remains running until user exits the application. While the process is running, I notice there is a thread associates to the process in my Java application.
Thread name: process reaper, id: 265392
java.lang.UNIXProcess.waitForProcessExit(Native Method)
java.lang.UNIXProcess.access$900(UNIXProcess.java:20)
java.lang.UNIXProcess$1$1.run(UNIXProcess.java:132)
I have found an article where an improvement had been done to OpenJDK where ThreadPoolExecutor is used to reduce total number of threads wit UnixProcess:
http://answerpot.com/showthread.php?58084-UNIXProcess%20improvements
How do I find out the if the latest release of 1.6 contains the fix? If not, if there a bug has been filed for such improvement?
I am using Java 1.6.0_18-b07 on CentOS 5.1.
Thanks a lot.

creating hundreds or thousand of processes is a bad idea and very expensive.
The thread pool is not a process pool. thread != process. However a thread pool could be used to pool the threads you use to read the output of a process, but that will make such a minor difference to the cost of creating a process I wouldn't bother.

Similar Messages

  • Has anyone been successful in using a HP scanjet on Windows 7 Professional XP Mode?

    has anyone been successful in using a HP scanjet on Windows 7 Professional XP Mode?

    Hi there,
    Could you provide the community with a little more information to help narrow troubleshooting? Which scanjet are you using?
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Has anyone been able to use a DataTransl​ations Frame grabber with CVI? I am trying to use a DT3152 in place of NI1408 frame grabber...

    DT does not provide drivers for this hardware to interface to CVI or LabView. Has anyone had success?

    you can find a LabVIEW driver at:
    http://www.imagemill-tech.com/LvDrivers_.htm
    "Blue" wrote in message
    news:5065000000080000006F1D0000-986697009000@quiq.​com...
    > Has anyone been able to use a DataTranslations Frame grabber with CVI?
    > I am trying to use a DT3152 in place of NI1408 frame grabber...
    >
    > DT does not provide drivers for this hardware to interface to CVI or
    > LabView. Has anyone had success?

  • Feature with ID 15/.. has already been installed. Use the force attribute to explicitly re-install the feature

    Hi everyone,
    I really become desperate with this one. I know, it's mentioned hundred times in the web, and it really works when you use a force deployment, but my simple question is: Why?
    To explain my issue: We have several SharePoint 2010 solutions which we want to deploy to SharePoint 2013 with Visual Studio 2012 running on Windows Server 2012. Site solutions work. But farm solutions just don't. I get the error (you
    guessed it): A feature with ID 15/... has already been installed in this farm. Use the force attribute to explicitly re-install the feature.
    And it does really work with the force attribute, but why on earth do you have to use the force flag? Something has to be different, and if there is an already installed feature with this ID, then why can Visual Studio not uninstall or
    deactivate it by itself first? This error never occurred with SharePoint 2010 and VS2012, although features are already installed. 
    Thanks a lot for your effort.
    Best regards,
    Patrick

    Hi Check this
    1.Double click on the feature.... ( or right click and choose properties)
    2.then in the properties window make
    3. ALWAYS FORCE INSTALL = false... (this should be false)
    Manoj Gangwar | Sharepoint MCPD | Sharepoint MCTS |

  • Just curious if anyone has EVER been able to use "live chat".  In the past 6 months no matter how many times I try I see the message, "All agents are busy right now"  Even if I try at midnight

    Has anyone had any success with live chat?  I have NEVER been able to reach anyone.  I complained to the FCC and an executive at Verizon contacted me I asked what options they had for me to contact anyone at Verizon (after trying to call them repeatedly and being put on hold and then disconnected repeatedly).  I said "I have never been able to reach anyone by live chat"-- her response was that is the very first time she has ever heard that-and that live chat is ALWAYS available."  I told her to try to reach her own customer service a few times and then she might know how it really works.  So I am curious- is it just me?  Has anyone been able to get through on live chat, and if so were they helpful?

    How unfortunate! I love the online chat!  Just used it on the 1st of October to inquire about the new data tier pricing. So much easier than waiting on the phone or in line at the Verizon store.
    Perhaps you need a faster internet connection or an update to Java on your computer.
    Hope my responding helps you figure it out!

  • Has anyone been able to use an Apple Thunderbolt to FireWire to daisy chain a dozen or more FireWire drives?

    Ever since I realized that I was not able to connect my FireWire daisy chain to my brand new Retina MBP there has been problems. Four months down the road, I am still unable to use my FireWire drives and have experienced terrible problems whenever I connect my FireWire daisy chain to this new Mac.
    I have bought two of these adaptors from Apple now and both do the same thing. The daisy chain has been working perfectly for years with my older MBP and still does! There are no problems until I connect to the new Mac.
    I have 15 various hard drives in NewerTech and DatOptics enclosures for over 22 TB. When connected to the new Mac, I would have multiple apps just hang, sometimes just Apple apps, sometimes 3rd party. I will not be able to force quit them and they will keep relauching as you can watch them in the Force Quit window. The Finder will hang and there is no relaunching it. I am having to do a force shutdown twice an hour which leaves no time for work!
    After four months of this, now I am being told that Apple will buy back my Mac at full price. But I have basically lost the good part of four month’s worth of work because of constantly fighting the new Mac. This is cost me all my savings and I am about to lose a client. It certainly seems that releasing Thunderbolt1 was a huge, huge mistake.
    Does anyone know of any large Fire Wire daisy chain working with Thunderbolt?
    TIA,
    R

    Yes, my first post is all about how darn iffy the adaptors are and I have two of them to return now.
    I question your answer because I am betting that four drives that are in one enclosure NOT all RAIDed together as one drive, but as four separate drives that those four drive will count as four devices. The daisy chain that I had going had eight drives in TWO quad boxes, four drives in TWO dual drives and another drive in a single enclosure. A total of five “devices” if you will, but also a total of 13 drives that were usually in this daisy chain.
    Both of the Apple branded Thunderbolt to FireWire adaptors chocked BIG TIME on this and it works no problem on my older MBP. You basically can not use a new Mac when you are connected to a daisy chain like this!
    Just checked the Apple website and indeed, I can get a new MBP with FireWire 800, just not with the Retina display! I wish that I would have known this five months ago before this all started!

  • Has anyone been able to use the ipad outside?

    I have been unable to get my ipad to last longer than a song and a half outside before it shuts down and says it has to cool down before I can use it. I even put it in airplane mode so 3g and wifi are turned off and the only thing running is the iPod app. It is only 80 degrees outside, what a piece of crap. It is a 16gb w/ 3g and is only 3 days old. I was hoping to use it where ever I go, put if you can't use it outside in warm temperatures, what good is it even having 3g?

    I'd say the issue may be leaving it in direct sunlight. The temperature from the radiance of the sun could cook your iPad. But in that light, dude, its not a radio. Its a quality computing device capable of doing many thing, just not in direct heat. You might do better with a cd player?
    Read this for more information on the subject of direct sunlight.
    http://www.usatoday.com/weather/resources/askjack/2006-08-21-shade-temperature_x .htm

  • Has there been any resolution using Plaxo and IMAC not able to sync

    Does anyone have the resolution for PLAXO sync for IMAC?  I have no issues with iphone of ipad only syncing with IMAC -

    Has anything changed between now and the last time you had sync working?  (upgraded iOS for example)
    I am not familiar with this: "However, on itunes, the button that usually says "my device" in the top right".  I don't see this on the latest release, what version of iTunes are you using?

  • Has anyone been able to use a shuffle 3rd gen 4GB with windows 7 64 bit?

    Hello, I have an Ipod Shuffle 3rd generation 4GB that works fine on machines with XP Pro 32 bit and Vista 32 bit but the Win 7 Pro 64 bit machine will not recognize it when plugged in.  I have tried all troubleshooting advice with no change.  Uninstalled Itunes, restarted and re-installed with no change.  Any help someone has would be much appreciated. Thanks!

    Because it works with the other PCs, you've ruled out a problem on the shuffle itself and a problem with the USB cable.  So that leaves some issue on the PC with Windows 7.  I don't think 64-bit versus 32-bit is a consideration.
    As a test, if you have not already, I would shut down and disconnect all other USB devices from the computer (except for standard keyboard and mouse if used).  Do this to Reset the shuffle
    http://support.apple.com/kb/HT1655
    Start up computer, run iTunes, and connect the shuffle to a direct USB port on computer.
    If the shuffle is still not recognized by iTunes, also check other places, such as Device Manager, to see if it appears anywhere.

  • Has anyone been having issues using tags? Adding tags to PDF's from within Preview results in a delays

    When adding tags to documents from within the document using the menu, after typing a few letters and then selecting a tag it then resets and you have to go back to the beginning. This is especially annoying when trying to edit a large number of documents quickly.
    It seems you have to wait up to 5 secs after typing a tag before trying to add it again. The problem appears to be some system wide delay in editing the tag into the file.
    I checked the problem against my new MacBook Air and it occurs there as wel.
    Anyone else come across this?

    Hi VikingOSX,
    The method you described is the current way I am doing it, my apologies I probably wasn't clear enough.
    The tagging works, but the issue is that as I start to edit in the tag area, after choosing a tag(s) it resets to blank after a couple of seconds and I have to tag again. After the second time the tags stay there and I can save the document.
    The tags I am choosing are from existing tags and it doesn't matter whether I click on them from the list or start typing a few characters and they appear, the problem is the same. It might seem trivial, but I regularly scan in a large number of documents and then edit their name and tags from the Preview title bar.
    I would be interested if you can recreate the issue yourself, I have it on two different Mac computers so thought it was something that was a bug in Mavericks.

  • Has anyone been able to use the download all feature in albums and playlists in iTunes Match using iOS 8?

    SInce updating to iOS 8 I can no longer use the download all feature in iTunes Match. Only 25 tracks download and then the downloading stops and I have to click on each individual track to download the rest. Is anyone else having this problem? Can anyone suggest a solution?

    SInce updating to iOS 8 I can no longer use the download all feature in iTunes Match. Only 25 tracks download and then the downloading stops and I have to click on each individual track to download the rest. Is anyone else having this problem? Can anyone suggest a solution?

  • Has anyone been able to use auto select printing on pdf documents?

    Does anyone have a fix for being able to preset the printer trays to a specific paper size to allow for autoselect printing of pdf documents with multiple size pages?   The mac printing options only allow for letter or legal with scaling.  I need to be able to print large documents with both size pages.  Windows environement can handle this with ease.  I'm very surprised Apple cannot.

    See This Discussion  >  https://discussions.apple.com/message/18056349#18056349
    From the  More Like This  on the right...
    Also,  See item 3 Here  >  Community etiquette

  • How do you search messages to see if your question has aleady been asked?

    I do not see a search field anywhere.

    Use the "search discussions' field above the Welcome on the right to see if the question you have in mind has already been asked. Use the "more options" to help restrict your search.
    You can also check out the "Help & Terms of Use" on the right or here: http://discussions.apple.com/help.jspa

  • Account for bank transfer has not been defined

    Hi,
    I am doing a Bank Transfer in my SDK development and I get following error:
    "Account for bank transfer has not been defined "
    I use _SYS00000000002 (Cash at Bank - Checking (HO, USA, GA )) from the US demo database for testing and it doesn't work.
    My code is below, even when this only for consuling.
    Thank you,
    Rune
    oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
                        oPayments.CardCode = vmp_CardCode_string;
                        oPayments.DocDate = DateTime.Now;
                        oPayments.JournalRemarks = "Incoming - Payment Bank Transfer";
                        oPayments.TaxDate = DateTime.Now;
                        SAPbobsCOM.Recordset oRecordset_BankAccount = null;
                        oRecordset_BankAccount = ((SAPbobsCOM.Recordset)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)));
                        oRecordset_BankAccount.DoQuery("SELECT * FROM [dbo].[@PAY_TYPE] WHERE [U_PayMethod] = '01'");
                        oRecordset_BankAccount.MoveFirst();
                        if (oRecordset_BankAccount.EoF == true) // No Records
                        else
                            vmp_BankAccount_string = Convert.ToString(oRecordset_BankAccount.Fields.Item("U_BankAccount").Value);
                        oPayments.TransferAccount = vmp_BankAccount_string;// "_SYS00000000343"; //"1010140-001";
                        oPayments.TransferDate = DateTime.Now;
                        oPayments.TransferReference = vmp_CardCode_string;
                        oPayments.TransferSum = vmp_Amount_double;
                        vc_Message_Result_Int32 = oPayments.Add();
    Edited by: Rune Brattas on Jun 18, 2009 5:18 PM

    Hi,
    I request you to post this thread in SDK forum,so that you may get quick response.
    And kindly close this thread after posting in the appropriate forum.

  • Anyone been able to use Video feeds in Video Centr...

    Has anyone been able to use the Video Feeds in Video Centre?,
    I can see Reuters and other that are downloaded but the ones that are streamed (youtube, CNN, Jamster, Inside Sony Pictures, etc.) if I use them over WLAN they time out or don't play.
    Some play over EGPRS, but the others I get a message 'Not enough bandwidth'
    I don't have 3G so I can't test if it's working over 3G. Has anybody been successful in using them over WLAN?
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

    Well, since my original post I've gotten 3G and I can confirm that they work on 3G.
    Too bad that some feeds don't get any updates
    Sony Pictures in particular has the same content since it launched
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

Maybe you are looking for