Multitheaded app slower using libmtmalloc library

Hi everyone.
I am running a Java app (1.6.0_21) application on Solaris 5.10 (amd64):
% uname -a
SunOS frecrdqa 5.10 Generic_144489-17 i86pc i386 i86pc
ex16067@frecrdqa:/home/ex16067 {106}
% isainfo -v
64-bit amd64 applications
aes sse4.2 ssse3 popcnt tscp cx16 sse2 sse fxsr mmx cmov amd_sysc cx8
tsc fpu 0x800000
32-bit i386 applications
aes sse4.2 ssse3 popcnt tscp cx16 sse2 sse fxsr mmx cmov sep cx8 tsc
fpu 0x800000
It is a multithreaded app and I am trying to improve performance of memory allocation using libmtmalloc,
by setting LD_PRELOAD=/usr/lib/libmtmalloc.so
However, the application runs a 50% slower when using libmtmalloc, and I see nothing obvious for this.
Any idea on what could I investigate to know why libmtmalloc makes my app go slower?
Many thanks,
Angel

Probably because the JVM your Java code is running under already manages multithreaded memory allocation quite well.
By adding in libmtmalloc you made that management double-layered.
Don't guess. Use a profiler that shows where your app is spending all its time.

Similar Messages

  • Our computer crashed that we mainly used iTunes on for upgrades, new purchases, etc.  We've downloaded iTunes onto my laptop but none of my apps are in the library.  We've made this laptop an authorized computer, but it's still not working.  Why is this?

    Our computer crashed that we mainly used iTunes on for upgrades, new purchases, etc.  We've downloaded iTunes onto my laptop but none of my apps are in the library.  We've made this laptop an authorized computer, but it's still not working.  Why is this?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Music app crashes while using shared library

    On my ipad 2 while using shared library every time I search the app crashes and most times when I try to play music on the music app via shared, only a handful of the artists show up and album art is all wrong. I tried it with two different ipad 2's thus it's itunes on my Mac Mini..
    I've tried:
    1. Reset ipad (didn't work)
    2. Signed out of ipad music shared, shut app down, sign back in. Most times I'll get all my artists and album art back but when I try to search it crashes, then once I reopen the artists are back down to a handful as opposed to hundreds. Search again, crashes immediately.
    3. I converted all music in my library to the newest ID tags (didn't work)
    4. I deleted both library files, (didn't work)
    5. I started over completely, deleted my library files and media, re imported, changed all ID tags to newest version (didn't work)
    6. Both ipads and computer and itunes are fully up to date
    7. I re synced both ipads by plugging them into the computer, deleted all music (didn't' work)
    This has been going on a long time, even under itunes 10, I'm out of options at this point.
    I have 8842 tracks at 66.76 gb.

    Unfortunately, I gave up and didn't find a solution.  However, it is, as of today, working properly. 
    Sorry, wish I had a good solution for you.

  • I tied to sync my ipod to the itunes but, the apps wont sync it just says the apps will be replaced with the ones on the itunes library,but there isnt any apps on there, i deleted all the apps after i use to use the library for my old iphone helpp\!!!!!!!

    i tied to sync my ipod to the itunes but, the apps wont sync it just says the apps will be replaced with the ones on the itunes library,but there isnt any apps on there, i deleted all the apps after i use to use the library for my old iphone helpp, the ipod used to be synced with a another i tunes libary that i have deleted now

    See:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    or
    Sync Your iOS Device with a New Computer Without Losing Data - How-To Geek
    You can only sync with one ITunes library. It you switch iTunes library iTunes will erase the iPod and replace it contents with what is in the library of the new computer.

  • How do I get the new Photos App to use my iPhoto library which is stored on an external drive?

    2 years back   assisted me in putting my HUGE iPhoto library on an external TB drive where I store all my pics and videos.  They showed me how to point the iPhoto app to the iPhoto Library on my external, and it has worked flawless since.  But now that I updated to the new release of Yosemite OS X, the Photos app failed to find it.  And from what it looks like, it requires it to be stored locally on the iMac's drive... which I only have 500Gigs, and that was the whole reason for relocating the library...it's WAY bigger than 500Gigs.  I would like to see if there is a way for the Photos app to find the iPhoto Library on my external, and update it so I can take full advantage of the new app and it's features.
    Any help would be appreciated...!
    Niles SoCal

    Hey spdnbusa09,
    If you hold down the Option key on your keyboard and launch Photos it should let navigate to and select you iPhoto Library on your external HD.

  • How can I transfer apps from one iTunes library to another?

    How can I transfer apps from one iTunes library to another? My daughter has an iTouch, and I was managing it through my library. I have created an iTunes account for her, with a new iTouch, and would like to move the apps over. I tried to sync the old iTouch to the new library and it said it was already set up to sync with a different library. What is the best way to do this?

    You can transfer iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    To make the new computer the syncing computer you have to:
    - Transfer iTunes purchases lIke I described above
    - Make a backup of the iPod on that computer by connecting the iPod and then right-clicking on the iPod under Devices in iTunes and selecting Back Up.
    - Restore the iPOd from that backup
    She will have to continue to use your iTunes ID to update the apps prchased with your account. To use her account she will have to log into the computer with her account (iTunes>Store) and change the sign in on the iPod by going to Settings>Store.

  • When i go to sync my apps with my computer it tells me  ''are you sure you want to sync apps ? all exsisting apps and there data on (iphone) will be replaced with the apps on this itunes library'' does this mean all my data will be lost if i continue ?

    when i go to sync my apps with my computer it tells me  ''are you sure you want to sync apps ? all exsisting apps and there data on (iphone) will be replaced with the apps on this itunes library'' does this mean all my data will be lost if i continue ?

    Regarding your broken, previously authorized computer, here's how that works:
    You would authorize your new computer -- maybe you've done that already.  Then you will have two computers authorized.  Apple allows you to have up to five computers authorized at any time.  If you get to five, you can then go to your account details in iTunes and remove all authorizations.
    Bear in mind this is not saying you can synch to more tham one library.  Razmee209 and gdgmacguy's comments above are correct.  But if Apple only allowed you to authorize one computer at a time, then having a broken computer would mean you could no longer use your Apple ID with iTunes.

  • Apps not on iTunes library but on iPhone 5S

    Note: when I first created this message a screwup on the keyboard posted the message before I had written more than two sentences.  I hope no one responded to my incomplete message.
    For some time now when I elect to install a new iOS release (not at 7.1.1), iTunes always tells me (both iPhone 5S snd iPad Mini) that there are apps on the iOS device that are not from my iTunes library?  Since I install all apps throught iTunes or from the iOS device purchase, how can this be.  I have never broken into iOS to install except by the standard accepted Apple process. 
    So far, each time, I cancel the update, do a full backup of the device to my desktop computer iTunes (version 11.1.5 (S)).  This time after the backup sync, iTunes transfers 56 purchased apps from my phone according progress status in iTunes. 
    Several questions:
       1.  How can I get a list of all the apps in my library AND all the apps on my iOS device, so I can know what I've got in case things get corrupted so I can do a complete restore.
       2.  Why is it reporting apps that are not in my iTunes library.  Every app on my devices were purchased in ITunes on my iMac desktop (OS X 10.9.2) or from the app store icon on my devices home screen?
    Without the list I asked for, I'm afraid taht if things go 'south' I won't be able to get back all the apps I purchased.  There are so many apps in the store (not a compllaint but an observation on the size of the task), that I have no idea how I would know which are missing.
    How can I get this fixed so I can backup my devices and be confident that I won't lose things.  I allow backup from WiFi (my personal WiFi in my home) when the iOS device is attached to the power.  This happens nightly for my iPhone when I put it in the charge by my bed.  And at  least weekly for my iPad which I plug in as it needs charging. 
    Thanks,
    Bruce

    Well, your post is very long, so I didn't read the whole thing in detail.
    But here are the answers to your two questions.
    1.  You can see the apps in your iTunes library by clicking the "Apps" tab toward the upper left of iTunes (it may say "Music" to begin ... then there is a drop down list).  You can see all the apps on your iOS device in one of two ways:
    a.  Swipe through the various home screen pages on your iOS device and note them.
    b.  While your iPhone is plugged into iTunes, click the "Apps" tab behind the iPhone's summary tab.
    2.  Assuming every one of your apps was purchased using the same Apple ID and password, apps that were purchased or updated on your iOS device will not appear in your iTunes library until you back up the iOS device.  You can get apps that you purchase on your iOS device to download automatically to iTunes by doing iTunes > Preferences > Store > Automatic Downloads > Apps = "check" from iTunes.  But I don't think this would capture app updates.

  • Error in using tag library

              I am using Weblogic server 8.1 and have a struts app. I am using the random taglib
              from jarkarta and recieving this error while using weblogic. With the same setup
              in tomcat everything works fine. What do I need to do special for weblogic?
              ERROR FROM WEBLOGIC
              /control/register/newMember.jsp(1): Error in using tag library uri='http://jakarta.apache.org/taglibs/random-1.0'
              prefix='randME': For tag 'string', cannot load extra info class 'org.apache.taglibs.random.RandomStrgTEI'
              probably occurred due to an error in /control/register/newMember.jsp line 1:
              <%@ taglib uri="http://jakarta.apache.org/taglibs/random-1.0" prefix="randME"
              %>
              taglibs-random.jar is in WEB-INF/lib
              random.tld is in WEB-INF
              the taglib include in my jsp looks like this:
              <%@ taglib uri="http://jakarta.apache.org/taglibs/random-1.0" prefix="randME"
              %>
              the call in my jsp looks like this:
              <randME:number id="random1" range="10000000-99999999"/>
              my web.xml looks like this:
              <taglib>
              <taglib-uri>http://jakarta.apache.org/taglibs/random-1.0</taglib-uri>
              <taglib-location>/WEB-INF/random.tld</taglib-location>
              </taglib>
              any help would be appreciated
              

    This may not solve your problem, but WL8.1 SP1 seems to have a problem with
              closing tags.
              Where you are using:
              <randME:number id="random1" range="10000000-99999999"/>
              ...try this instead:
              <randME:number id="random1" range="10000000-99999999"></randME:number>
              This problem is fixed in SP2.
              -- Craig
              "ssandy" <[email protected]> wrote in message news:[email protected]...
              >
              > I am using Weblogic server 8.1 and have a struts app. I am using the
              random taglib
              > from jarkarta and recieving this error while using weblogic. With the
              same setup
              > in tomcat everything works fine. What do I need to do special for
              weblogic?
              >
              > ERROR FROM WEBLOGIC
              >
              > /control/register/newMember.jsp(1): Error in using tag library
              uri='http://jakarta.apache.org/taglibs/random-1.0'
              > prefix='randME': For tag 'string', cannot load extra info class
              'org.apache.taglibs.random.RandomStrgTEI'
              > probably occurred due to an error in /control/register/newMember.jsp line
              1:
              > <%@ taglib uri="http://jakarta.apache.org/taglibs/random-1.0"
              prefix="randME"
              > %>
              >
              > taglibs-random.jar is in WEB-INF/lib
              > random.tld is in WEB-INF
              >
              > the taglib include in my jsp looks like this:
              > <%@ taglib uri="http://jakarta.apache.org/taglibs/random-1.0"
              prefix="randME"
              > %>
              >
              > the call in my jsp looks like this:
              > <randME:number id="random1" range="10000000-99999999"/>
              >
              > my web.xml looks like this:
              > <taglib>
              > <taglib-uri>http://jakarta.apache.org/taglibs/random-1.0</taglib-uri>
              > <taglib-location>/WEB-INF/random.tld</taglib-location>
              > </taglib>
              >
              > any help would be appreciated
              

  • TS1702 i have purchaced many apps from the app store, and now after updating my phone to iOS 6, the apps sitting in my library in iTunes wont transfer to my phone anymore? Says that the apps can not be found. The appstore says i have no bought apps either

    I have previously bout about 30-40 apps from the app store. After a recent update to the newest version of iOS (and a reset back to factory standards), i find that i cant put any of the apps from my iTunes library, back onto my phone!? When i try, it says that the apps location cant be found!?  I tried going into the app store and in the app section going into 'Purchaces', in the hope that i could just re-install them from there (because i have already paid for them), but in there, it tells me that there are NO apps in my purchaces list!?  This is quite concerning because i have spent quite a bit of money on these apps, that now seem to be un-usable?!   Ican still put all my music on my phone through iTunes liuke normal, but Podcasts are doing the same thing as the apps?! Can someone please help me, or suggest what to do because im really getting frustrated.  I really like my iPhone, but if this is what is going to keep happening, i think ill change to an Android phone. . . . .

    Thanks too all the people who responded. . . . (noone)
    Got it sorted though. Seems that Apple has issues with multiple apple id's.
    Seems i had to somehow remember and use the original id i had when i first bought my 1st iPhone. . . .
    Even after that it was extremely hard to get my apps back on my PC.
    If anyone else has the same problem. . . .email Apple. Cya.

  • Apps no longer in Library after upgrading to 10.5.1.42 - help!

    After I upgraded iTunes to 10.5.1.42, all my apps disappeared from my iTunes library.  The one sone that was there has disappeared as well.  It's as if iTunes lost the entire library.  Any suggestions on how to recover?

    Welcome to the Apple Discussions. First, you should not be editing any files inside the iPhoto Library folder without going thru iPhoto. That's committing the cardinal sin of iPhoto - Don't tamper with files in the iPhoto Library folder from the Finder.
    To try to get your library back on its feet download and run BatChmod on the iPhoto Library folder with the settings shown here, substituting your account name for mine. You can either type in the path to the folder or just drag the folder into that field. See if that won't bring the thumbnails back and let you edit the full sized images in iPhoto.
    To use PS with iPhoto you should go into iPhoto's General preferences and select PS and the editor to use when you double click on a thumbnail. Then when you do, that file will open in PS and you can edit. There is one caveat to that system: if you make a layered file or do any edit that makes PS want to save it as a psd file you must either flatten the image and save it as a jpg with the same file name and in the same location OR do a Save As and save it to the desktop. There you can import it into the library as a new file. Those workflows are required for iPhoto to know you've edited a file, create a modified version in the Modified folder and update the thumbnail.
    The reason you couldn't import those files into iPhoto is that they are located in iPhoto's Library folder and it won't import any files from there because they are already in the library.
    The BatChmod should clear up the thumbnail issue. If it doesn't I suggest you use iPhoto Library Manager to rebuild the library. It creates a new library and copies the files and any needed data from the old library, leaving it intact.
    Do you Twango?
    G5 Dual Core 2GHz, 2G RAM, 250G HD; G4 Dual 1Ghz, 1.5G RAM, 80G HD,   Mac OS X (10.4.6)   22 LCD Display, 200G & 160G FW HDs, Canon S400, i850 & LIDE 50, Epson R200

  • Using embedded library assets

    Hi,
    I've some movieclips in the library of an fla (all linked up
    properly) and published as an swf. Now I want to embed this swf in
    my flex app and instantiate the library items. But I get null
    objects.
    The size of the published flex app varies if I change the
    embed statements, so the objects are there. But they don't get
    instantiated when I try to.
    I've uploaded my code here as an actionscript project.
    http://akube.com/TestProject.zip
    Please help. I can't understand what I'm doing wrong. I've
    embedded fonts etc successfully but can't get around this.

    ...well, ah... :(
    I do not use Flash but rather SWiSHmax, a "poor mans flash."
    So I have no .fla, instead a .swi. Would that help?
    There is literally no code in the swi for Flex strips it out
    anyway. Instead I add any needed code at runtime from the Flex
    .swf.
    Basically, off the _root I have a MC called wrapper. In
    wrapper I make the "preloader" resource as another MC containing
    the progress bar, text filed, background, etc.. I name the "asset"
    wrapper MC as "Preloader" and export as SWF8.
    So in your code, candleAsset (MC) IS the wrapper MC. So in
    dot.dot language, we have:
    candleAsset.preloader.progressBar and
    candleAsset.preloader.progressText.text
    Hope this helps.

  • My iPhoto starts up and freezes.  I have tried rebuilding and using iPhoto Library Manager.  I have an iMac running 10.7.3.  It was working before recent updates by Apple.  How can I troubleshoot?

    My iPhoto starts up and freezes.  I have tried rebuilding and using iPhoto Library Manager.  I have an iMac running 10.7.3.  It was working before recent updates by Apple.  How can I troubleshoot?

    Thank you.  Might be a bit more than 50 but close.
    Date/Time:       2012-04-09 12:46:07 -0400
    OS Version:      10.7.3 (Build 11D50d)
    Architecture:    x86_64
    Report Version:  9
    Command:         iPhoto
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Version:         8.1.2 (8.1.2)
    Build Version:   8
    Project Name:    iPhotoProject
    Source Version:  4240000
    Parent:          launchd [142]
    PID:             980
    Event:           hang
    Duration:        1.81s
    Steps:           19 (100ms sampling interval)
    Pageins:         0
    Pageouts:        0
    Process:         iPhoto [980]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Architecture:    i386
    UID:             502
      Thread 0x50630    
      User stack:
        19 ??? (in iPhoto) [0x3172]
          19 ??? (in iPhoto) [0x124b80]
            19 NSApplicationMain + 1054 (in AppKit) [0x9c5eb261]
              19 -[NSApplication run] + 911 (in AppKit) [0x9c357675]
                19 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 113 (in AppKit) [0x9c35b306]
                  19 _DPSNextEvent + 678 (in AppKit) [0x9c35ba9c]
                    19 BlockUntilNextEventMatchingListInMode + 88 (in HIToolbox) [0x90129356]
                      19 ReceiveNextEventCommon + 381 (in HIToolbox) [0x901294e7]
                        19 RunCurrentEventLoopInMode + 318 (in HIToolbox) [0x9012217f]
                          19 CFRunLoopRunInMode + 120 (in CoreFoundation) [0x99dce328]
                            19 CFRunLoopRunSpecific + 332 (in CoreFoundation) [0x99dce47c]
                              19 __CFRunLoopRun + 1112 (in CoreFoundation) [0x99dcec68]
                                19 __CFRunLoopDoSources0 + 246 (in CoreFoundation) [0x99da4d96]
                                  19 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15 (in CoreFoundation) [0x99da53df]
                                    19 __NSThreadPerformPerform + 503 (in Foundation) [0x9ac96e40]
                                      19 -[NSObject performSelector:withObject:] + 65 (in CoreFoundation) [0x99e2dde1]
                                        19 ??? (in iPhoto) [0x50792e]
                                          19 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92 (in Foundation) [0x9ac45012]
                                            19 _CFXNotificationPost + 2776 (in CoreFoundation) [0x99de3a38]
                                              19 ___CFXNotificationPost_block_invoke_1 + 275 (in CoreFoundation) [0x99e18cb3]
                                                19 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 49 (in Foundation) [0x9ac59e25]
                                                  19 ??? (in iPhoto) [0x5c2a86]
                                                    19 -[NSLock lock] + 185 (in Foundation) [0x9ac4c826]
                                                      19 __psynch_mutexwait + 10 (in libsystem_kernel.dylib) [0x93b74876]
      Kernel stack:
        19 hndl_unix_scall + 281 (in mach_kernel) [0xffffff80002d7f39]
          19 unix_syscall + 472 (in mach_kernel) [0xffffff80005ca448]
            19 psynch_mutexwait + 1403 (in mach_kernel) [0xffffff80005a043b]
              19 ksyn_block_thread_locked + 67 (in mach_kernel) [0xffffff800059a7d3]
                19 thread_block_reason + 299 (in mach_kernel) [0xffffff800022f39b]
                  19 thread_continue + 1661 (in mach_kernel) [0xffffff800022f11d]
                    19 machine_switch_context + 361 (in mach_kernel) [0xffffff80002c0939]

  • Why is my iPad so slow using verizon 3g verses wifi

    why is my iPad so slow using verizon 3g verses wifi?

    My older sister has an iPhone 4S with Verizon, and my iPhone 4S is with AT&T.
    At Xmas this past year, I used the same speed test app on her iPhone and on mine to check each carrier's download and upload speed. This was in Dallas where both carriers have good coverage. My download and upload speeds with AT&T blew her iPhone's download/upload speeds with Verizon out of the water. Wasn't even close.

  • Weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri

    Previously my web app was running fine using eclipse 3.1
    When I upgraded my eclipse to 3.2 then built the same web app and deployed, upon running the url i got error
    weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri='/tags/css' prefix='css' : cannot find tag class
    Your help is appreciated.

              Hi Guys
              Problem is almost certainly because I've gone and defined the get as returning
              an int, (hence no property!)
              Apols
              J
              

Maybe you are looking for

  • Haven't been able to make/receive calls or texts for a month

    I've had no service on my phone for a month now and haven't been able to make or receive calls or texts. I've had my phone (iphone 4) for almost a year now, one day it was fine, the next it wasn't. It literally just happened over night. My sim card w

  • Help, the pc suite music program shuts dowm after ...

    Hej, I have a very big probelm, I can't transfer music to my N73, because just when I open the the 'music transferring program', it shuts down! And no matter if I try to play a song or choose another option, it's like it just ignores it and closes do

  • Crash on movie import

    I can't import any movie format into InDesign CS5, it crashes InDesign no matter what. I've been through all the pref clean up, etc, CRASHES EVERY TIME. Used Quicktime and Adobe Media Encoder but none of the formats work. Very frustrating.

  • Can't pair iPhone 5 with Mac mini or iPad

    When I try to pair my iPhone 5 with my Mac mini (current model), I'm able to go through all the steps and the Mac shows the iPhone is connected for about 1-2 secs and then drops the connection.  I'm trying to pair them so I can use the TokenLock app

  • How can I capture mouse click events on BSP or Web Dynpro ABAP Screen

    hi Guys, Currently we have a user inactivity problem, the requirement is: if user is clicking on BSP/Web Dynpro ABAP screen, he/she is considered active. so we need an mechanism to capture the mouse click event. Using Firebug, we found that this js i