|
| Index | Recent Threads | Unanswered Threads | List Polls | Public Albums | Who's Online | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 6 |
|
| Author |
|
|
Member ![]() Joined: Sep 8, 2003 Post Count: 75 Status: Offline |
http://www.lunarforums.com/forum/viewtopic.ph...65a0f6db7473ed8d4afed14a6 |
||
|
|
mvnForum Developer Joined: Feb 27, 2003 Post Count: 185 Status: Offline |
In my experience Hibernate is not memory and resource intensive. I guess they had bad experience because someone configured extensive usage of in-memory caches. Your application would run faster if you have all data in memory instead of database, but it would consume a lot of memory! Dejan |
||
|
|
mvnForum Developer Vietnam Joined: Oct 16, 2002 Post Count: 2956 Status: Offline |
Yes, Dejan guess is reasonable, but what is the default value of cache in Hibernate, maybe the default value is high for a share environment. ps: I still worry about the time spend for the migration, it would take a lot of time and could make mvnForum unstable for several months ![]() ---------------------------------------- Minh Nguyen mvnForum Developer Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com http://www.DienDanLinux.org |
||
|
|
Member ![]() Joined: Sep 8, 2003 Post Count: 75 Status: Offline |
It works now with hibernate connection pooling turn off :-0 Not the best solution, may be I should have shortened the reconnect time instead, but well... I will let it run for a while... btw, I ran into similar problem with mvnforum. Problem went away after I change reconnection time from 30 min to 5 min :-) anyway... site is up, check it out at http://www.wirelessreview.net Sound of your reception, "Can you hear me now?" ![]() |
||
|
|
mvnForum Developer Joined: Feb 27, 2003 Post Count: 185 Status: Offline |
Hibernate 2.1.x uses EhCache for caching by default. You can easily switch to some other CacheManager. EhCache is configured using ehcache.xml file. There is default config file in ehcache.jar file, so if you don't specify cache configuration for some class it would use default configuration. By default, caching is not enabled. As I could see, by default ehcache stores maximum 10000 objects in memory. I guess that it is settings per Class, so if you have many classes and enable caching for all of them maybe it could take too much memory. |
||
|
|
mvnForum Developer Joined: Feb 27, 2003 Post Count: 185 Status: Offline |
Don't use Hibernate's default connection pool since it has some problems. When I used it I needed to restart the application every morning! Also Hibernate documentation says that it should not be used in production! Use DBCP or C3P0 instead, they are much better. Dejan |
||
|
|
|
|
|
Current timezone is GMT Jan 7, 2009 6:02:04 PM |



