high cpu usage #739
-
I have implemented a jsp using yauaa. Therefor I am importing UserAgent and UserAgentAnalyzer, creating necessary objects, calling parse(..) of a given userAgent string and returning either a json value or a simple html page. Unfortunatelly if there are multiple calls to this code (Postman runner, 500 calls one after another), we encounter a huge cpu impact. I don' think this is normal but also fail on identifying the problem? any help is appreciated!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Apparently I figured it out on my own. Creating a new UserAgentAnalyzer object for each and every call to this jsp file causes this issue. I've put it into an application scope variable now. Works like a charm. |
Beta Was this translation helpful? Give feedback.
Apparently I figured it out on my own. Creating a new UserAgentAnalyzer object for each and every call to this jsp file causes this issue. I've put it into an application scope variable now. Works like a charm.