开发者

Grails Spring Security Slow Startup

Environment :

Intel Core 2 duo, 3 gig RAM
Ubuntu 9.10, Grails 1.3.5, Spring security plugin 1.1.2
JVM Parameters : -Xms512m  -Xmx1024m  -XX:MaxPermSize=512m  

Starting an application that uses the grails spring security plugin is very slow. I found this reported here. The work around suggests setting the anonymous key as that seems to be the slow down due to SecureRandom - "set a key manually using " .

I set this within Config.groovy to no avail.

grails.plugins.springsecurity.anonymous.key="someuniquekey"

Where a number was used for someuniquekey. It still takes forever (~30 seconds) to get past the Configuring Spring Security...开发者_如何学运维 message.

Any ideas? Am I setting this in the wrong place or the wrong way?

Thanks, Steve


By 22 Miscellaneous Properties

http://burtbeckwith.github.com/grails-spring-security-core/docs/manual/guide/single.html

the key should be

grails.plugins.springsecurity.anon.key

But I try it, even not no change after set.


You can set the next var in Config.groovy

environments.development.searchable.bulkIndexOnStartup = false


I found my problem is not totally related to Spring Security, since I install Searchable, and has some amount of data inside the db, the slow startup mainly due from the Searchable build index, when startup.

You can find the solution for the Searchable startup setup here,

http://www.grails.org/Searchable+Plugin+-+FAQ

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜