How do you launch multiple threads from within Java EE?

后端 未结 6 1244
孤城傲影
孤城傲影 2021-01-01 04:02

I need to scale calls into Tomcat and it\'s been suggested to launch threads internally. Has anyone needed to do this and, if so, what solutions did they come up with?

6条回答
  •  鱼传尺愫
    2021-01-01 04:28

    as others asked, you should give more details as to what you're trying to accomplish.

    Otherwise, tomcat uses thread pools. increase the number of threads in the pool. Use a newer version of tomcat -- 6.x. Use Java 6.0_10. If needed, tune the application using a profiler and fiddle with the JVM settings, if required.

提交回复
热议问题