Bypassing is also a kind of capability-record an interface problem

Source: Internet
Author: User

Feedback from on-site implementation: The system is slow and the whole system is stuck. Diagnosis process:

1. Check the application log, that is, the Weblogic log, and find the blocked thread. Check that the Code is the called interface.

<03:47:30 P.M. CST> <error> <weblogicserver> <BEA-000337> <executethread: '7' for queue: 'default' has been busy for "994" seconds working on the request "http request:/web/DWR/call/plaincall/tododwr. gettodoclassifylist. DWR ", which is more than the configured time (stuckthreadmaxtime) of" 600 "seconds.>

2. Check the database report and find that the load is very small. You can determine that the problem does not occur at the database level.

3. Continue to analyze the interface code and find that the business is very simple, that is, to call a WebServices. Unexpectedly, find that the interface does not have a time-out period, add it to the development, and then send the incremental data to the site.

After the on-site increment, it is blocked once a day. The problem is not solved, and the interface timeout setting does not take effect? However, local testing is acceptable. Continue to analyze the interface code and find that the interface is implemented through XFile with version 1.4.2. You have found the corresponding setting methods on the Internet. There are three methods added, after the increment, the problem still persists.

Because the problem cannot be found, I had to bypass xifile, rewrite the interface, and call the interface in axis mode. After the increment, the problem was solved. The whole solution took two weeks.

Summary:If you encounter a problem that cannot be solved, you can think about it and solve it in other ways. Of course, you can't go around when you encounter any problems. How to grasp the problem depends on yourself. In this event, we have found a solution online for a long time, at the same time, I also found the most professional person in the company's writing interface to support the diagnosis. This would not solve the problem and I could only go around. The open-source architecture cannot be fully trusted. Its use must be very mature and widely used in projects. Otherwise, you must regret it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.