Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OGNL is extremely slow when in debug mode (Tomcat 7)

We have project which utilizes OGNL (3.0.6). When Tomcat server is started in RUN mode, OGNL expression execution takes <1ms. However, when server is in DEBUG mode, same expression executes in around 80 ms, that is 80+ times slower! I have tried everything I could imagine off - disabling OGNL logging (log4j.logger.ognl=FATAL), tweaking DEBUG settings in Eclipse (latest STS 3.3.0) - nothing helps even a bit. What is interesting, this slowdown occured after I have re-installed STS and created brand new workspace. In older STS (same 3.3.0 version) everything was OK, however debugger integration was completely broken (that was the case for re-install). I must mention also, that I'm not alone - my colleague has the same problem with his Eclipse setup. Please, maybe someone have had similar problems. I would be enormously grateful for any help!

like image 769
Serzhas Avatar asked Jan 30 '26 02:01

Serzhas


1 Answers

I had a similar problem with Eclipse. Oddly, all I did to fix the problem was clear all breakpoints. This guy helped me: https://stackoverflow.com/a/1373547

like image 131
vrcca Avatar answered Feb 01 '26 22:02

vrcca



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!