简体   繁体   English

运行Java多线程进程,顶部显示单线程

[英]Running Java multi threaded process and top shows single thread

I hope I'm asking it correctly, we have a process which has 10 threads, on one server the process finishes after 4 minutes (which is great) and on the other it takes 40 minutes, now on the slower one I see the following when running "top": Tasks: 255 total, 1 running , 242 sleeping, 12 stopped, 0 zombie 我希望我能正确地询问它,我们有一个具有10个线程的进程,在一台服务器上该进程在4分钟后完成(这很棒),而在另一台服务器上则需要40分钟,现在在较慢的一个进程上,我看到以下内容当运行“顶部”时:任务:总计255, 正在运行1,正在休眠242,已停止12、0僵尸

which basically makes sense as only 1 thread is working. 这基本上是有意义的,因为只有1个线程正在工作。

Is there any configuration for the ux which might limit the work of multi-threaded processes? ux是否有任何配置可能会限制多线程进程的工作?

A Tasks translates to a process not thread. 任务转换为进程而不是线程。 A single Process will have multiple Threads. 一个进程将具有多个线程。 In top you should see the number of threads running displayed. 在顶部,您应该看到显示的正在运行的线程数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM