简体   繁体   中英

Spring MVC request is too slow

I have a web app that used Spring MVC framework, Tomcat for 7 for front end that call Websphere for back end.

In some pages I have jsp files that call controllers for inserting or updating data. This work well when I try to send a few data but when I try to send more data the application cant response and goes to timeout. The problem is.. for example when I click on a href to open a page passing input data this cant go in the controller method( or it is very slow). So the problem is not the back end and nor the front end I think. But I dont know what I ve to do.. Any suggestion?

Thnx

  1. Try it without debug mode.
  2. All heavy logic handling behind controllers should be in async mode.
  3. Use performance testing to detect your bottle neck .

If you interesting in solution for your concrete case, I will improve my answer if you share your application via git .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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