Pthread_cancel seems does'nt free mem

I have thread which was created as a PTHREAD_CREATE_DETACHED. And then I kill it using pthread_cancel(). I regularly do the creation and cancellation of this thread and my problem is the memory usage of the process is increasing by 8K everytime I create a new thread. Why it seems it doesn't free the cancelled thread, or if the memory is freed, why it doesn't re-use the memory? What do I need to prevent this increase of memory cause by these threads?

try http://java.sun.com/products/jndi/serviceproviders.html

Similar Messages

  • Monitoring the JVM free mem, from the outside.

    Hello.
    i'm looking for a way to monitor the free mem while the server is
    running.
    The aim : detect when the server will be outOfMemory.
    Any idea ?
    thanks.

    Notifying someone that WL is about to die doesn't really help a lot, does it? All
    they can do is kill/restart it before it dies on it's own.
    I think your time would be better spent figuring out why you run out of memory
    and fixing it. Check out JProbe.
    Mike
    Laurent Andre <[email protected]> wrote:
    thanks.
    that's already what i'm doing in log file.
    My aim is to monitor this in real time - send alert to the supervisor
    of
    the platform.
    Viresh Garg a écrit :
    For outofmemory situations, please consider following points:
    1) Try to conservatively estimate the capacity you need based on the
    number
    of clients or sessions or whatever you are supporting, and boost
    capacity
    when you reach a threshold. This does not require VM support, and may
    work
    best.
    2) Use Runtime.freeMemory() to see how much memory you have available.
    The
    problem is, you don't know where in the GC cycle you are when you call
    it.
    So some people provoke a GC deliberately before calling this. Sometimes
    you
    may need to call GC twice in a row for a variety of reasons havingto do
    with finalization. All of this is flaky, as it may cause your
    application
    to thrash because of excess GC, and because of many other complications
    (how is memory distributed/fragmented; are there large pinned objects;
    etc.).. You have to be careful that Runtime.getRuntime().freeMemory()
    returns the free memory from current heap size which could be waybelow
    max heap size if your ms and mx settings are different.
    3) The accurate test would be ( also a bad one as it forces gc)
    Runtime r = Runtime.getRuntime();
    long total_memory = r.totalMemory();
    long mem_avail = r.freeMemory();
    if (mem_avail < total_memory/4) {
    r.gc();
    total_memory = r.totalMemory();
    mem_avail = r.freeMemory();
    Viresh Garg
    BEA Systems
    Yes - create the following JSP
    <%= Runtime.getRuntime().freeMemory() %>
    Mike Reiche
    Laurent Andre <[email protected]> wrote:
    Hello.
    i'm looking for a way to monitor the free mem while the server is
    running.
    The aim : detect when the server will be outOfMemory.
    Any idea ?
    thanks.

  • Why does my free trial not work?

    Why does my free trial not work?  This is intentially misleading.

    You need to provide a better description of what isn't working, system info and all that. This could be all sorts of technical issues or your trial could simply have bombed itself. In the latter case there is nothing you can do:
    Adobe trial software expired early
    Anything else like iunstall issues can in most cases be sorted out...
    Mylenium

  • Nokia E72 - How much free mem after update to 91.0...

    Hello!
    Obviously there are not too many still using the Nokia E72 around here. But of those having updated to firmware version 91.003, could anyone please tell me how much free mem there is after startup, i.e. with PhoNetInfo or a similar application? Would be much appreciated. With 73.001 I have about 40 to 41MB with unused apps deinstalled or turned off.
    Thanks!

    Changelog : improvements in memory (RAM) consumption
    My opinion : nothing has been changed [less than 45 mb at startup]
    Nokia E72 V091.003

  • The problems seems that the free trial what i am constantly paying for may have ran out/free trial time never contacted as i find this online to take to long and to hard to deal with  yet a paying costumer restricted by some weird fault i don't get this t

    the problems seems that the free trial what i am constantly paying for may have ran out/free trial time never contacted as i find this online to take to long and to hard to deal with  yet a paying costumer restricted by some weird fault i don't get this tried every thing how can i be billed and money taken for hired subscription  but end up with a "free trial" that cut me off having withdrawal as i live my life inside Photoshop 

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • Can't seem to find free trial of premiere pro after downloading on PC

    can't seem to find free trial of premiere pro after downloading on PC

    It's under Start > All Programs > Adobe Premiere Pro CC at first. After first launch, windows will remeber it as a recent program and it will be easier to see.
    As for why it's not responding... try all the obvious stuff, like force quit/restart/relaunch. Then check your specs and make sure they meet the requirements. After that, it may require some troubleshooting with tech support to find out why things did not install correctly for you.
    And, to be clear, installing the tirial is essentially the same as installing the full retail version. The main difference is that you will ge tthat trial dialog each time you launch and it will time out after 30 days if you don't activate by then.

  • Exfat drive does not free up space after deleting files

    My external exfat formatted drive does not free up space after deleting files using a mac....however if I delete files using a PC, it will free up space.
    I've even tried the *erase free space* using Disk Utility, but nothing.....
    Thoughts/Suggestions??

    Thanks for the suggestion.
    I ran WhatSize and here is the result. Oddly, it says there is 40.2 GB used (in the top-left) which conflicts with the information directly below it: "Capacity 108 GB, Used 103GB, Available 4.27 GB". Not so helpful.
    Disk Inventory X solved the problem, however. Much thanks! I wasted most of my weekend troubleshooting this sad issue. Anyway, Disk Inventory X revealed a bug where my external hard drive for photos was still appearing as a mounted volume, even though the HD was no longer connected. Freaky.
    After moving it to the trash and deleting it, I've recovered the space.
    Again, thanks! Contact me if you're curious about the details, as this might help you diagnose similar problems in the future.
    - Mike

  • What are the licensing terms for Creative Cloud Market Assets (e.g., what does Royalty Free mean? Can I use it in items for sales)?

    What are the licensing terms for Creative Cloud Market Assets (e.g., what does Royalty Free mean? Can I use it in items for sales)?

    Found it Creative Commons — Attribution-NonCommercial-ShareAlike 3.0 Unported — CC BY-NC-SA 3.0

  • Does sim-free iphone lock to the network?

    HI all,
    I've been asking different question here recently connected to iphones and now I have one more question. Does sim-free iphone lock to the carrier of the first sim used in it? I've been using mine for a while and now i'd like to change mobile carrier. So, aren't there going to be any problems with it? Thanks in advance.

    Apple does not use the term "SIM free" in any of their marketing materials.  If you bought the phone at Carphone Warehouse in the UK, it will lock to the first UK carrier used to activate it. It can not be activated on a foreign network unless unlocked by the UK carrier used to activate it. Other than that, so far as I'm aware, phones are "locked" or "unlocked". I don't know of anywhere else where things are done like they are at carphone warehouse in the UK.

  • What day does the free app of the week change?

    What day does the free app of the week change?

    Thursday.
    Apple can make changes to shorten or lenghthen the amount of time. Usually however, it changes on Thursdays.

  • Does sim-free iPhone 6 support the 4G of cmcc?

    CMCC, China Mobile Communications Corporation is using LTE-TDD as 4G, which most of iPhones does not support. I've heard that the sim-free iPhone 6 might be fit with the 4G of CMCC, is that true? And some of my friends told me that iPhones start with A1586 can support the 4G of CMCC. Does sim-free iPhone 6 has iPhones start with A1586? Thanks!

    https://www.apple.com/iphone/LTE/

  • Does the free repair cover a cracked screen for 4th generation 8gb ipod touch

    i dropped my 4th generation 8GB ipod touch it has not been a year since i bought it does the free repair cover this?

    Warranties for most any product, including the ipod,  do NOT cover damage.
    Apple - Support - iPod - Repair pricing

  • Out Of Memory with tons of free mem

    I need help diagnosing a problem I'm having with a server application.
    The problem:
    I'm getting general flakeyness and sometimes "OutOfMemory: cannot create new native thread" after the application has been running several hours (with 150 or so logins and 300 or so signs rendered).
    The environment:
    We run Tomcat 3.2.4, Xalan2, JAXP1.1, mysql w/ mm.sql JDBC driver v1.2.0.13, JDK 1.3.1_03
    on a SunFire v880 w/ 4 processors, 8Gig RAM running Solaris 8. JVM args set to -server -Xms3g -Xmx3g -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:SurvivorRatio=16 -XX:+DisableExplicitGC
    What I've tried:
    I've run under OptimizeIt and found only small amounts of mem being consumed ongoing. Something the GC ought to be able to handle. I've played with the GC parameters in an effort to get this problem under control. I monitor the freemem and can see it go up and down through out the day. The lowest freemem has come down is to 900Meg, then bounces back up to 2.7Gig or so. I suspected fragmentation, but from what I read, hotspot shouldn't allow that to happen.
    That exception is thrown from native code in "jvm.cpp" in the JVM_StartThread() method. Comments say it could happen when memory is low (duh).
    Our App:
    We render in store signs for a major US department store. Our app provides simplified sign composition. We render the signs for printing (generating postscript for the printers). Sometimes we deal with buffers as large as 112Meg. We use XML for sign templates and jobs. We spit out XML from servlets, using XSLT to transform to HTML for the browser. Our sign templates use some XSLT to add common things into the templates as they are loaded. We support image upload to a repository that the sign creators can use in the signs. So, we deal with lots if image data and XML throughout the app. We hit the database throughout the workflow.
    HELP!

    Hi,
    I had the same problem under Linux, but found a solution:
    There are 2 different factors for this problem.
    There is the "Xss" option of Java and the "stack size"
    as reported/set by ulimit:
    ulimit -acore file size (blocks) 0
    data seg size (kbytes) unlimited
    file size (blocks) unlimited
    max locked memory (kbytes) unlimited
    max memory size (kbytes) unlimited
    open files 1024
    pipe size (512 bytes) 8
    stack size (kbytes) 8192
    cpu time (seconds) unlimited
    max user processes 16896
    virtual memory (kbytes) unlimited
    When using java 1.3.1, the "Xss" option is ignored, so
    only the "stack size" of ulimit counts. Setting the
    stack size using ulimit is done using the -s option:
    ulimit -s 8129This sets the stack size per Java thread to 8MB.
    The default stack size in Redhat Enterprise Server 3.1
    is 10MB. When a Java thread is started, this 10MB is not taken
    immediately, but the Linux kernel does guarantee this thread 10MB
    if it needs it. Suppose you hava 2GB memory in your machine, then
    after starting 200 Java threads, the light goes out even though
    "top" reports 1.5GB of free memory. The memory is free, but the
    kernel has already promised all of it to the 200 executing Java
    threads.
    Under java 1.4.2, the Xss option is not ignored. It has the same
    effect as the "stack size" set by ulimit; specifying a large amount
    of memory for Xss will limit the amount of threads you can start.
    Using java 1.4.2 it seems these settings both have to be tuned.
    Greetz,
    Chris Twigt

  • Running out of internal storage space! Want to make room by deleting photos WITHOUT LOSING MY PHOTOS! Can I delete the Camera Roll yet still keep my photos in Photo Stream?? Will doing this free up ios storage? Does Photo Stream auto delete ever?

    Hello, I am out of internal storage on my Iphone 4 ALREADY (Just purchased 3 months ago!). I need to clear up some space so I can do updates and take new photos. I was thinking about backing up my Photo Stream to the icloud and then deleting my Camera Roll.
    1.) Is this a terrible idea??? I do NOT want to lose those photos! But I NEED more space on my phone!
    2.) Will deleting Camera Roll free up space (a sufficient amount? My Camera Roll is at 4.5 GB)?
    3.) Will deleting Camera Roll delete my photos from Photo Stream also? It doesn't seem to.
    4.)  Does Photo Stream ever automatically delete photos???
    5.)  Is there anyway I can save the pictures from my phone to my computer??? I can see the photos on my computer when viewing them through Photo Stream, but those are not permanent, correct?
    This is one of the most ridiculous, confusing and unnessacary things I've ever known! Why oh why can't we just have a good ol' SD Card??? (My Droid never ever ran out of storage and I had it for 2 years...)
    I tried backing up my photos in Itunes, but I don't have a new enough version. I tried downloading a new itunes and it still tells me I don't have the new version.
    I have been working on this for 4 hours, its 2:30 am and I am going to bed. I am sorry I had to ask, but I've been searching and searching and just cannot find the answers. Thank you so much for your help!
    6.) Also, I haven't been able to find the videos using the Icloud or the Photo Stream either...
    7.) Do you have to have your device (pc) synced with icloud to access the info you backed up from iphone?? Like can I show my cousin my photos at her house using her computer by just loggin on??? Or can I only view my contacts, calender, mail, notifications, and such?
    8.) Where on the icloud would one find text messages or other saved info??
    Thank you so very much for helping me!!!

    What I would say is best is to import the videos and photos to your computer so that you can delete camera roll photos with a copy of them in your possession:
    http://support.apple.com/kb/ht4083
    In regards to backing up Photo Stream
    http://support.apple.com/kb/HT4486:
    Does Photo Stream use my iCloud storage?
    "No. Photos uploaded to My Photo Stream or Shared Photo Streams do not count against your iCloud storage."
    However, you can do the tedious task of moving your camera roll pictures to photo stream by ensuring photo stream is turned on for your device and take a screen shot of each picture in your camera roll to move it over.
    To take a screen shot, just press the "Home Button" and the "Sleep/Wake Button" at the same time while viewing the image.
    1.)  It's not a terrible idea, it can be tedious though.
    2.)  Deleting a bunch of photos/videos from a camera roll 4.5GB in size can definitely free up space
    3.)  Photo Stream photos, as you said, appear to stay upon deleting the photos.  (Tested it personally)
    4.)  Photo Stream has a limit according to:  (http://support.apple.com/kb/HT4858)
              Essentially, it won't erase your photos until you tell it to.
    5.)  http://support.apple.com/kb/ht4083  (As shown above)
    6.)  To update iTunes, you must download and then "Run" the download you get off the website.  Otherwise you will just have an installer program sitting there not updating iTunes.
    7.)  You can bring up your Photo Stream pictures anywhere you have Photo Stream capabilities.  For a computer at someone else's house, they would have to have the iCloud control panel (http://support.apple.com/kb/dl1455) on their computer and be signed into their Photo Stream and viewing your profile's pictures (http://support.apple.com/kb/ts4379)
    8.)  On iCloud, you can backup your text messages, but you cannot view them independently on www.icloud.com.
    http://support.apple.com/kb/ht4859
    "You get 5 GB of free iCloud storage for:
    Photos and videos in the Camera Roll
    Device settings (for example: Phone Favorites, Wallpaper, and Mail, Contacts, Calendar accounts)
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Visual Voicemails"
    Hope some of this information helps!

  • Help needed: Disk space does not free up even after deleting files.

    Background information for this problem: I have my iPhoto library on an external HD, and was importing files from that same drive into iPhoto, and began receiving messages that I was very low on disk space on my internal HD. From here, it seemed like iPhoto was using my boot drive for some kind of cache. Regardless of the actual reason, I began moving files from my internal HD to fix this problem temporarily (while I was importing).
    At this point, I started fiddling with my files and found that no matter how many files I would delete from my HD, the available space in the finder would not free up. *At this point, I have less than 20GB on my HD, yet it says I have 1.23 GB available out of 108 GB.*
    Here is what I have already tried to fix the problem, to no avail:
    a) Original user was using Filevault. I backed up all the files, created a new user without Filevault, and restored the files.
    b) Booted from CD and used Disk Utility to erase free space.
    c) Verified and fixed permissions
    d) Deleted all app and system caches (via CacheOut X)
    e) Fixed/Repaired all user/system preferences (via Preferential Treatment)
    *Does anyone have any idea what's going on?*
    -

    Thanks for the suggestion.
    I ran WhatSize and here is the result. Oddly, it says there is 40.2 GB used (in the top-left) which conflicts with the information directly below it: "Capacity 108 GB, Used 103GB, Available 4.27 GB". Not so helpful.
    Disk Inventory X solved the problem, however. Much thanks! I wasted most of my weekend troubleshooting this sad issue. Anyway, Disk Inventory X revealed a bug where my external hard drive for photos was still appearing as a mounted volume, even though the HD was no longer connected. Freaky.
    After moving it to the trash and deleting it, I've recovered the space.
    Again, thanks! Contact me if you're curious about the details, as this might help you diagnose similar problems in the future.
    - Mike

Maybe you are looking for

  • Payment on Account in Incoming payment

    Dear All, We are creating a addon for incoming payment through DI API. We are adding incoming payment based on journal entry and Invoice. While creating this entry in incoming payment, Payment on account checkbox is automatically enabled for the bala

  • How to find out the tables that will be affected using a transaction

    Hi, How to find out the list of database tables that will be affected when we use a standard transaction(ex. VA01, MM01..)...?(like When we create a salesorder, which tables and which fields will be affected..?) Is there any transaction or a simple w

  • Extracting info out of a long raw

    I have a table (actually from the Peoplesoft financials system) with a field type of :- MIMEDATALONG LONG RAW() This field contains an XML document, I'm trying to extract the XML out of the field using SELECT. I've tried every function I know of, but

  • HD Not shown after "Others" set to "None"

    Ok, i was setting up a new login for my sister to use my computer and i dont want her accessing my secondary hard drive, so i set the "Others" permission to "none" on the HD icon itself. Now my HD is not visible anywhere on any login and no files can

  • Problem with Migration assistant permissions on User Home

    I bought a shiny new mac air, and wanted to transfer my user account "bruce" from the old computer to the new one.  I created an account "rachel" on the new computer, plugged both computers into hub and ran migration assistant.  When I attempted to l