Which thread currently running?

hi,
in my application i am facing out of memory error. I observed through 'windows task manager' that memory usage of the tomcat is continuosly increasing though the application is left idle. this usage is going up by 4kb per 5 sec.
I want to know which threads are running in the backgound causing this increase in the memory.
can we set some option in environemnt variables etc.??
please help.
~vishal.

Hmmm,
You need this
http://www.sysinternals.com/Utilities/PsList.html
1. pslist.exe -x -d -m <pid>
repeat pslist
to tell u which thread is actually running (showing increased time).
Note the tid column.
2. Next, do a ctrl+break to get a thread dump. The tid in 1. will match that of nid. This will tell u which thread is running.
If u cant do a ctrl+break, u may need this http://www.latenighthacking.com/projects/2003/sendSignal/
Used in combo, this should tell u which thread is running.

Similar Messages

  • I have an iMac 21.5" which is currently running 10.7. It takes between 5-10minutes to boot into system and i have noticed a continuous error log on console: 12/3/2014 5:17:49.000 PM kernel: USBF:     1586.748     AppleUSBHubPort[0xffffff800e51b600]::Fatal

    I have an iMac 21.5" which is currently running 10.7. It takes between 5-10minutes to boot into system and i have these console error messages  listed below:
    12/3/2014 5:17:49.000 PM kernel: USBF:          1586.748          AppleUSBHubPort[0xffffff800e51b600]::FatalError - Port 2 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (2)
    12/3/2014 5:17:49.000 PM kernel: USBF:          1587. 26          AppleUSBHubPort[0xffffff800f55a800]::FatalError - Port 3 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (1)
    12/3/2014 5:17:49.000 PM kernel: USBF:          1587. 27          AppleUSBHubPort[0xffffff800f575200]::FatalError - Port 1 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (1)
    12/3/2014 5:17:53.000 PM kernel: USBF:          1590.840          AppleUSBHubPort[0xffffff800e51b600]::FatalError - Port 1 of Hub at 0xfa110000 reported error 0xe000404f while doing getting port status (4)
    12/3/2014 5:17:53.000 PM kernel: USBF:          1590.840          AppleUSBHubPort[0xffffff800e51b600]::FatalError - Port 1 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (2)
    12/3/2014 5:17:54.000 PM kernel: USBF:          1591.122          AppleUSBHubPort[0xffffff800f55a800]::FatalError - Port 2 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (1)
    Any help as i notice it has something to do with the usb but i cant tell which device. also it has been behaving the same in Mountain Lion as well. Any help will be greatly appreciated.

    If you don't have a hub attached, then I suggest a visit to an Apple repair station. I don't have one and don't see any of those kinds of messages in any Console log.

  • My friend bought the Lion upgrade for her MacBook.  She would also like to upgrade her desktop Mac which is current running Leopard.  Does she have to buy SnowLeopard for her Mac first?  Both computers use the same apple ID and password.

    My friend bought the Lion upgrade for her MacBook.  She would also like to upgrade her desktop Mac to Lion which is currently running Leopard.  Does she have to first buy a SnowLeopard upgrade for her desktop?  And will the upgrade from SnowLeopard to Lion then be free?  Both computers use the same apple ID.

    She would also like to upgrade her desktop Mac to Lion which is currently running Leopard.
    She needs to purchase Snow Leopard but she can re download Lion on the desktop for free after Snow Leopard is installed.
    And definitely use the same Apple ID to download Lion on the desktop.
    Mac OS X 10.6 Snow Leopard - Apple Store
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    edited by:  cs

  • How can I update my Macbook to 10.7  it is currently running 10.6.8 and I now have an iPhone, so want to use icloud.  It says no software updates

    I was hoping to update my Macbook, which is currently running 10.6.8 to 10.7, but it says that software is up to date.  I want to use iCloud since I now have an iPhone.  How can I update the software??

    See Here for Buying Lion...
    http://www.apple.com/macosx/how-to-buy/

  • ThreadPoolExecutor and using priority to determine what threads will run

    Hello,
    I am fairly new to Java, so I apologize if there is an obvious answer.
    The ThreadPoolExecutor is a great class for thread management. What I would like to do is have a priority scheme that would determine what thread should be run next. For example, let's say I have 100 threads and a limit of 20 threads. Each thread that is executed should have a mechanism to indicate a priority. When a thread becomes available in the pool, the priority value should be checked to determine which thread to run. This would allow me to get important tasks completed quickly. Right now it appears that there is a FIFO order to threads. I tried wrapping the runnable object in a Thread, but that didn't seem to have an effect.
    I am using a Fixed thread Pool:
          loThreadPoolExecutor = (ThreadPoolExecutor) Executors.newFixedThreadPool(MAXTHREADS); (MAXTHREADS=20)I have tried creating a PriorityBlockingQueue with a comparator that compares the thread priority, but nothing seems to work.
      public Constructor() {
    loThreadPoolExecutor = new ThreadPoolExecutor(MAXTHREADS,MAXTHREADS*2,0,TimeUnit.SECONDS,new PriorityBlockingQueue(11,new PrvComparator()));
        private class PrvComparator implements Comparator  {
              public int compare(Object o1, Object o2) {
                   // TODO Auto-generated method stub
                   Thread t1 = (Thread) o1;
                   Thread t2 = (Thread) o2;
                   System.out.println("P1="+t1.getPriority()+ " P2="+t2.getPriority());
                   if (t1.getPriority()<t2.getPriority()) return -1;
                   if (t1.getPriority()>t2.getPriority()) return 1;
                   else return 0;
                   //PriorityBlockingQueue
              }I would appreciate any help.

    What are you trying to prioritize? The order on which tasks come off the work queue, or the order in which they get completed?
    Doing the first is simple but restricted. Your tasks are Comparable and define their own priority and you use a PriorityBlockingQueue. But you are restricted to using the execute() method with Runnable's that are Comparable. submit() will wrap the task in a FutureTask that isn't Comparable and so will cause a ClassCastException.
    Doing the second is difficult. Even if your threads have different priorities then don't queue for tasks in priority order, so the thread priority when taking a task is irrelevant. You could change the thread priority based on the priority of the task once it starts executing. But Thread priorities are only a hint to the scheduler that you think Thread A is more important than Thread B. On some platforms priorities will have little observable effects - whereas on other it can be drastic if you use priorities that are too high or too low. The mapping from Java priority to OS thread priority is platform specific. See for example http://java.sun.com/javase/6/docs/technotes/guides/vm/thread-priorities.html

  • Currently running OS X 10.6.8 am I ok to upgraded to OS X Moutain Lion?

    Hi
    Just wondering I have an imac which is currently running OS X 10.6.8. Am I ok to upgrade straight to OS X Mountain Lion?? Is there anything I need to look out for or be careful of?????

    Upgrading to Snow Leopard, Lion, or Mountain Lion
    Upgrading to Snow Leopard
    You can purchase Snow Leopard by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The price is $19.99 plus tax. You will receive physical media - DVD - by mail.
    Third-party sources for Snow Leopard are:
    Snow Leopard from Amazon.com
    Snow Leopard from eBay
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store.
    Before upgrading check that you computer meets the minimum requirements:
    Snow Leopard General requirements
      1. Mac computer with an Intel processor
      2. 1GB of memory
      3. 5GB of available disk space
      4. DVD drive for installation
      5. Some features require a compatible Internet service provider; fees may
          apply.
      6. Some features require Apple’s MobileMe service; fees and terms apply.
    Upgrading to Lion
    First, you need to upgrade to Snow Leopard 10.6.8 as stated above.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
    Before upgrading check that you computer meets the minimum requirements:
    Lion System Requirements
      1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or
          Xeon processor
      2. 2GB of memory
      3. OS X v10.6.6 or later (v10.6.8 recommended)
      4. 7GB of available space
      5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    Be sure your computer meets the minimum requirements:
    Apple - OS X Mountain Lion - Read the technical specifications.
    Macs that can be upgraded to OS X Mountain Lion
      1. iMac (Mid 2007 or newer)
      2. MacBook (Late 2008 Aluminum, or Early 2009 or newer)
      3. MacBook Pro (Mid/Late 2007 or newer)
      4. MacBook Air (Late 2008 or newer)
      5. Mac mini (Early 2009 or newer)
      6. Mac Pro (Early 2008 or newer)
      7. Xserve (Early 2009)
    Are my applications compatible?
    See App Compatibility Table - RoaringApps - App compatibility and feature support for OS X & iOS.
    Am I eligible for the free upgrade?
    See Apple - Free OS X Mountain Lion upgrade Program.
    For a complete How-To introduction from Apple see Apple - Upgrade your Mac to OS X Mountain Lion.

  • How to get info about currently running threads in j2sdk1.4.2

    I am using j2sdk-1.4.2. There are many threads running in my program. I want to see after which thraed is invoked after another thread. I have used Thread.sleep() method to sleep the thread and give the chance to another thread to run.
    Thanks,
    Amit Mittal.

    There is no way known to me to find out, which thread is currently active if you don't want to use debugging-outputs.
    But please don't use sleep(), it slows your code down unnecessarily and is not save. Use Thread.yield() in order to give other threads the chance to run.
    Regars, tom

  • Is it possible to check which thread is currently executing?

    Hi,
    is it possible to check which thread is currently executing in MIDP?
    actually i want to display a gauge for connection and download status and i
    want to increment the gauge as per data download...
    i already have implemented the Runnable interface..
    now using another thread i need to increment the gauge value until a boolean
    variable returns true.
    but for this, i need to check which thread is executing ....
    plz help.

    Like this?
    Thread aParticularThread;
    public void run() {
      if (Thread.currentThread() == aParticularThread) {
    }shmoove

  • I have a MacBook Pro (15-inch, Late 2008) and am currently running Snow Leopard 10.6.8. I would like to know which is the most stable upgrade for my model. I have read some reviews of Maverick and Yosemite making the older macs slower. Is this true?

    I have a MacBook Pro (15-inch, Late 2008), Intel Core 2 Duo 2.53 GHz, 4GB Memory. and am currently running Snow Leopard 10.6.8.
    I would like to know which is the most stable upgrade for my model? Mountain Lion, Mavericks or Yosemite?
    When I had gone to the apple care centre in India a few months ago to upgrade my OSX to Mountain Lion, I was told that considering my macbook pro's specs, upgrading it would just make it less efficient, and that I should stick to Snow Leopard unless I consider buying a newer mac that would benefit from it. Is this true? I find it a bit hard to believe. Which update is most recommended?
    I also notice that my mac has gotten considerably slower. While using chrome, it buffers and struggles with even just 5 tabs open. Could this have something to do with my current ios? As a precaution, I have always been making sure I have enough free space on disk i.e around 70 - 100 free out of 250GB.
    Any advice is appreciated.
    Thanks in advance.

    Mavericks is no longer available from the App Store, so your choice is Yosemite. One option is to create a new partition (~30- 50 GB), install the new OS, and ‘test drive’ it. If you like/don’t like it it, you can then remove the partition. Do a backup before you do anything. By doing this, if you don’t like it you won't have to go though the revert process.
    Check to make sure your applications are compatible.
    Application Compatibility
    Applications Compatibility (2)

  • HT1444 How can I upgrade the OS on my 5 year old MacBook Pro 17.  It is currently running 10.4 (Tiger).  I have an IMac 27 running Lion but have Snow leopard discs which came with the purchase.  Can these be used to upgrade?

    How can I upgrade the OS on my 5 year old MacBook Pro 17.  It is currently running 10.4 (Tiger).  I have an IMac 27 running Lion but have Snow leopard discs which came with the purchase.  Can these be used to upgrade?

    Buswab wrote:
    How can I upgrade the OS on my 5 year old MacBook Pro 17.  It is currently running 10.4 (Tiger).  I have an IMac 27 running Lion but have Snow leopard discs which came with the purchase.  Can these be used to upgrade?
    If they are the grey discs which came with the iMac, then they will be machine specific and will not work on the MBP anyway. You will need to purchase a retail copy of Snow Leopard from the Apple Store for about $29 and upgrade from that. I presume your MBP is Intel and not G4.
    Good Luck
    Pete

  • How to detect which applications that are currently running

    Hi there. Is there a way to detect which applications that are currently running on my machine? Is there a class that can get all of the running applications, you know, like the taskmanager.
    //peter

    What you are asking for is indeed not possible through "100% Pure Java," because each operating system that runs Java Virtual Machines can handle the running processes differently (think about the differences between a process scheduler for, say, Windows NT and your Palm Pilot, both of which could have a JVM running).
    That means there are essentially 2 avenues to persue for this:
    1. Use an external "user-level" command (like ps on a UNIX-like OS) and parse the results (this is what people are referring to when they say "Runtime.exec()". There have been some nice exec() frameworks posted around here before, so I'd recommend searching around a bit for more info.
    I also found this link (from Google) which apparently shows the javadocs where someone has attempted something similarly on the Linux platform before...that's all I know about it:
    http://www.cougaar.org/software/9.2/javadoc/api/org/cougaar/tools/server/system/linux/LinuxProcessStatusReader.html
    2. Use a JNI (Java Native Interface) call to an externally provided C function to get the info you need. Here's a link to the Java 1.4 JNI information:
    http://java.sun.com/j2se/1.4/docs/guide/jni/
    Hope this helps! (But it's not going to be a quick and easy problem to work with)...
    -J

  • I am currently running my mac booc pro with the osx 10.5.8 and i want to update it. Which is the best way?

    I am currently running my mac booc pro with the osx 10.5.8 and i want to update it. Which is the best way?

      Snow Leopard Purchase
    Computer Compatibility - Lion
    Mountain Lion/Mavericks
    Check that your computer is compatible with Mountain Lion/Mavericks.
    To check the model number hold down the option/alt key, go to the Apple menu and select System Information.
    MacBook Pro (Mid/Late 2007 or newer) model number 3,1 or higher
    Your Mac needs:
    OS X v10.6.8 or OS X Lion already installed
    2 GB or more of memory (More is better - 4 GB minimum seems to be the consensus)
    8 GB or more of available space

  • Another installer is currently running which must be closed before installing this product please close other installers

    another installer is currently running which must be closed before installing this product please close other installers
    this is the message im getting when trying to install adobe photoshop cs6 extended version
    since im not at all running any installers in my system i tried restarting my system many times i got nothing to do
    any one please help me resolve this issue
    thanks in advance

    restart your computer and retry.
    if that fails, check your task manager (win) or activity monitor (mac).

  • Determine which programs are currently running on OS

    Hi,
    Is there any way in java so that I can determine whether a particular program is currently running on the OS, or not?
    Thanks,
    Vimal

    Using the NT resource kit there is a command called 'pulist'.
    It provides less detail that 'ps' on unix.
    There is also a unix toolset available at
    http://virtunix.itribe.net/mystuff.html
    It provides a 'ps' command.

  • How to check which apps are currently running? C3

    Anybody out there...When there is not enough memory to open a new app it gives you the opportunity to stop currently running background apps.  Is there a way to check and/or stop apps before you run out of memory?
    Phone: C3
    Thanks

    unfortunately there is no way to launch that "task killing" app from anywhere from the phone, it just starts itself when you run out resources.

Maybe you are looking for

  • Problem with UIShell

    Hi ADF Experts, We are using dynamic tab shell in out ADF Application, If the keep multiple tab open and ideal ,let say I have open 10 tab ,and kept the system ideal for some 10 min time. Again if I try to switch between the tab.It is taking lot of t

  • BPM 11.1.1.6.0 gets confused in process tracking

    Hi, In my bpm model there are some steps where the same activity is repeated (any number of times) in other words the flow can return to a particular activity many times for example the flow could dictate that the activity "Document Review" was acces

  • LOV in oracle express

    Hi! I want do define a lov like this: select category, category from demo_product_info the problem ist that an error appaers that i am not allowed to use the same column-name for display and return-value?! thx!

  • Forum for SQL Developer and Data Modeler?

    I searched now for a while all the available forums but did not found a special forum for the Oracle SQL Developer tool. Where do I post questions about it? Is there another, separate forum for SQL Developer Data Modeler? Peter

  • Setting OBI variables in JavaScript

    Is there some way to set OBI variables from JavaScript? And I mean any way, a Go URL syntax, pretending to be a Prompt, AJAX...candles and incense...anything!! : ) I have some embedded HTML, and when the user clicks on a button/link/whatever, I need