So you say this performance problem disappears as soon as you disable config reloading?
Hmmm. Although this fixes the problem, I’m very surprised by this huge performance problem. I wonder what exactly is causing this. One possible candidate would be the annotation scanning. But I sent quite some time of my life on optimizing this scanning process. 🙂
Could you perhaps try to enable configuration reloading again but additionally disable the annotation scanning by setting this parameter:
Hmmm. Thanks for giving this configuration a try. Anything special about your environment that could cause this?
Could you perhaps tell be a few more details? Is it a very large app with many classes? Which OS are you using? Do you deploy a WAR or an EAR archive? Anything that could slow down access to the HDD (like a NAS or something like that)?
What do you mean with “Can I setup the rewrite by a single file?”. You could use a ConfigurationProvider instead of annotations to configure Rewrite if you want to have your configuration at a single place.