Login

mvnForum

mvnForum Homepage Welcome Guest
  Search  
  Index  | Recent Threads  | Unanswered Threads  | List Polls  | Public Albums  | Who's Online  | Help


Quick Go »


No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
Post new Thread
Author
Previous Thread This topic has been viewed 1867 times and has 5 replies Next Thread
Male sru
Member
Member's Avatar


Joined: Sep 8, 2003
Post Count: 75
Status: Offline
Reply to this Post  Reply with Quote 
MvnForum's webhost Lunarpages doesn't and won't support hibernate

http://www.lunarforums.com/forum/viewtopic.ph...65a0f6db7473ed8d4afed14a6
[Mar 26, 2004 12:14:54 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male dejan
mvnForum Developer




Joined: Feb 27, 2003
Post Count: 185
Status: Offline
Reply to this Post  Reply with Quote 
Re: MvnForum's webhost Lunarpages doesn't and won't support hibernate

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
[Mar 31, 2004 7:54:40 AM] Show Printable Version of Post    View Member Profile    Send Private Message    dejan_krsmanovic    76119246 [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: MvnForum's webhost Lunarpages doesn't and won't support hibernate

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 confused
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Mar 31, 2004 5:12:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Male sru
Member
Member's Avatar


Joined: Sep 8, 2003
Post Count: 75
Status: Offline
Reply to this Post  Reply with Quote 
Re: MvnForum's webhost Lunarpages doesn't and won't support hibernate

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?" wink
[Apr 1, 2004 12:08:21 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male dejan
mvnForum Developer




Joined: Feb 27, 2003
Post Count: 185
Status: Offline
Reply to this Post  Reply with Quote 
Re: MvnForum's webhost Lunarpages doesn't and won't support hibernate

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.
[Apr 1, 2004 9:00:13 AM] Show Printable Version of Post    View Member Profile    Send Private Message    dejan_krsmanovic    76119246 [Link] Report threatening or abusive post: please login first  Go to top 
Male dejan
mvnForum Developer




Joined: Feb 27, 2003
Post Count: 185
Status: Offline
Reply to this Post  Reply with Quote 
Re: MvnForum's webhost Lunarpages doesn't and won't support hibernate

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
[Apr 1, 2004 9:12:07 AM] Show Printable Version of Post    View Member Profile    Send Private Message    dejan_krsmanovic    76119246 [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread