Affects Version/s: 1.7
Fix Version/s: None
Environment:linux, windows, tomcat 6 running via maven, JDK7 (but had same issue with JDK6)
Parser.jj_scan_token runs very slowly during java debugging mode. I've allocated more than enough memory for Java (Xmx , Xss, PermGen) and made sure it is enough by monitoring via visualvm.
I am working on a springframework mvc project, with velocity as the template engine. Spring has a macro file that is loaded during startup : spring.vm (10kb). My box (6 core phenom processor) takes 10 seconds to parse that macro. After profiling with visualvm, I found out that 9 secs are spend on jj_scan_token method.
When running the project without debugging enabled, the parsing is very fast.
Please note that the issue occurs without any customization of velocity properties. Typically though the properties look like this:
Please note that I've tried removing the encoding, but still the problem persists.