-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expression Language issue #12664
Comments
Jetty uses tomcat Jasper so no surprise that you got the same problem
there. I would have a read of the bug tracker for Jasper and see if this
is a known issue. We do try to keep up with releases of Jasper, but I'll
check if there's been another release. Other than that, I think the
debugger is your friend.
Jan
…On Sun, 29 Dec 2024, 07:57 Artin Salehi, ***@***.***> wrote:
Hello, first of all, I would like to thank you for all your efforts.
In a JSP page, using ${something} when something is not set or does not
exist causes the RPS on my system (which can handle up to 10,000 RPS) to
drop to less than 2,000. However, if a value is actually set for it, there
is no issue. Another scenario is that if no value is set, but the scope is
explicitly specified (e.g., ${requestScope.something}), there is no problem.
version : 12.0.* + all jetty dependency ( jetty-ee10-*).
It doesn't make a difference whether with session or without session, with
virtual threads or platform threads — I even tested it with Tomcat Jasper,
and it was still the same.
And unfortunately, I don't know anything else I can do to figure out where
the problem is coming from.
—
Reply to this email directly, view it on GitHub
<#12664>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACTTBWLPENIHVM44EMWBN32H4GDDAVCNFSM6AAAAABUKDX6BCVHI2DSMVQWIX3LMV43ASLTON2WKOZSG43DCOJUGU3DQOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I tested it with Tomcat and Jasper, and I didn't encounter this issue. |
@javad-salehi have you tried pre-compiling your jsp page, if so, did it make a difference? Have you modified the default settings of the jsp servlet at all? Can you post a thread dump showing the problem? I'm doubtful it is Jetty, because the interpretation of all jsp pages is purely done by Jasper. |
My entire code is very simple, and all the settings are default. web.xml & jsp config : jsp page :
|
@javad-salehi your stacktrace shows that almost all of your available jetty threads are trying to load a class asked for by Jasper:
I'm pretty sure that if you put that in the debugger the classname it's looking for is Best way to avoid it is to ensure your |
Honestly, I'm not exactly sure what I should do, I just know that according to the standard, if we have something like ${something}, JSP(jasper) should first check in the page scope, request scope, session scope, and app scope to find it. And for default setting, if there is no value, it should easily be set to null. |
If you have |
Hello, first of all, I would like to thank you for all your efforts.
In a JSP page, using ${something} when something is not set or does not exist causes the RPS on my system (which can handle up to 10,000 RPS) to drop to less than 2,000. However, if a value is actually set for it, there is no issue. Another scenario is that if no value is set, but the scope is explicitly specified (e.g., ${requestScope.something}), there is no problem.
version : 12.0.* + all jetty dependency ( jetty-ee10-*).
It doesn't make a difference whether with session or without session, with virtual threads or platform threads — I even tested it with Tomcat Jasper, and it was still the same.
And unfortunately, I don't know anything else I can do to figure out where the problem is coming from.
The text was updated successfully, but these errors were encountered: