Re: Wicket web site down with a few hits

2011-01-15 Thread nino martinez wael
Did you make sure that when using c3p0 it actually was enabled and that you
used the validation query? and set this property:

http://stackoverflow.com/questions/1652676/hibernate-c3p0-broken-pipe

property 
name=hibernate.connection.provider_classorg.hibernate.connection.C3P0ConnectionProvider/property


Anyways as Martin says BoneCP are nicer, although some time ago it did not
play that nice together with HSQL (it's probably better now)..


2011/1/7 LucHub luca.abb...@luchub.com


 Hi Martin,

 thanks for you suggestion. I'll make more test in this direction. Right
 know
 I temporaly solved the problem avoiding the use of the c3p0 library and
 having a thread that every hour keep the connection awake. Of course I'll
 do
 test to optimize the app based on your suggestion.
 Thanks a lot for all your precious help.


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3178918.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Wicket web site down with a few hits

2011-01-07 Thread LucHub

Hi Martin,

thanks for you suggestion. I'll make more test in this direction. Right know
I temporaly solved the problem avoiding the use of the c3p0 library and
having a thread that every hour keep the connection awake. Of course I'll do
test to optimize the app based on your suggestion.
Thanks a lot for all your precious help.


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3178918.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket web site down with a few hits

2011-01-07 Thread Martijn Dashorst
c3p0 and other connection pools are pretty much deprecated with
hibernate 3.6 (as we discovered). com.jolbox.bonecp is a competent
replacement.

Martijn

On Fri, Jan 7, 2011 at 11:42 AM, LucHub luca.abb...@luchub.com wrote:

 Hi Martin,

 thanks for you suggestion. I'll make more test in this direction. Right know
 I temporaly solved the problem avoiding the use of the c3p0 library and
 having a thread that every hour keep the connection awake. Of course I'll do
 test to optimize the app based on your suggestion.
 Thanks a lot for all your precious help.


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3178918.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket web site down with a few hits

2011-01-06 Thread LucHub

Hi, I tried to kill the process but I found nothing of strange. Right now I
think that the problem is probably solved. I throw away a library that I
used together with Hibernate (the c3p0 library) that I put ther essentially
for autoReconnection problems of the JDBC mysql driver. Avoiding this
library, the app seems to pass the load stress test.

More info as I make more test.

Thanks to all.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3177253.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket web site down with a few hits

2011-01-06 Thread Martin Grigorov
it sounds like you were leaking DB connections
Thread dump easily will show you this problem. You'll see threads trying to
acquire a DB connection and will wait until some of the previous acquired
connections is returned to the pool.

On Thu, Jan 6, 2011 at 12:27 PM, LucHub luca.abb...@luchub.com wrote:


 Hi, I tried to kill the process but I found nothing of strange. Right now I
 think that the problem is probably solved. I throw away a library that I
 used together with Hibernate (the c3p0 library) that I put ther essentially
 for autoReconnection problems of the JDBC mysql driver. Avoiding this
 library, the app seems to pass the load stress test.

 More info as I make more test.

 Thanks to all.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3177253.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Wicket web site down with a few hits

2011-01-05 Thread LucHub

Hi Martin,

What do you exactly mean for dump the threads? I am almost a newbie, I
cannot find any document that examplin this.

I made a few more test logging Wicket. To have the web site going down I
need a few hits (close each other) on a bookmarkablepagelink.

Here ( http://www.luchub.com/temp/info.txt
http://www.luchub.com/temp/info.txt ) is the log at the INFO level just as
an example.


After this, any other hit of the link doesn't produce any row.

Here I link a debug level log of a 'pretty much the same' situation (
http://www.luchub.com/temp/example.txt
http://www.luchub.com/temp/example.txt )

Thanks in advance
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3175105.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket web site down with a few hits

2011-01-05 Thread LucHub

Hi, thanks for the reply.

Honestly I read a little bit around and using WicketServlet instead of
wicketFilter is a kind of not reccomended. I would like to go for teh filter
way, but thanks a lot for teh reply.

Part of the reason is that I think that is impossible that a wicket app goes
down because of 20 hits close each other. I'm wrong somewhere and I need you
help gurus :-)

If you need any other information please ask.

Luca
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3175117.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket web site down with a few hits

2011-01-05 Thread Martin Grigorov
If you use some kind of Unix then run: kill -3 process id of
tomcat/jetty/...)
This will dump the threads' stack traces in the process standard out
(somewhere in the log files).
This way you can see whether there are threads waiting for something.

Making 20 requests and stopping responding could mean that your
application/setup leaks connections and
at some point the web server stops responding to new clients.

On Wed, Jan 5, 2011 at 10:41 AM, LucHub luca.abb...@luchub.com wrote:


 Hi Martin,

 What do you exactly mean for dump the threads? I am almost a newbie, I
 cannot find any document that examplin this.

 I made a few more test logging Wicket. To have the web site going down I
 need a few hits (close each other) on a bookmarkablepagelink.

 Here ( http://www.luchub.com/temp/info.txt
 http://www.luchub.com/temp/info.txt ) is the log at the INFO level just as
 an example.


 After this, any other hit of the link doesn't produce any row.

 Here I link a debug level log of a 'pretty much the same' situation (
 http://www.luchub.com/temp/example.txt
 http://www.luchub.com/temp/example.txt )

 Thanks in advance
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3175105.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Wicket web site down with a few hits

2011-01-04 Thread Martin Grigorov
Any indications what exactly is the problem ?
Anything in the logs? Any jvm crashes?

On Tue, Jan 4, 2011 at 7:38 PM, LucHub luca.abb...@luchub.com wrote:


 Hi all,

 I recently created a wicket 1.4.12 web site and I deployed it on Apache
 Tomcat 7 on Ubuntu Server. What happen is that if I hit quickly 2 different
 links on the menu the web site sometime goes down. I cannot access the
 website also from other computers.

 Very basic configuration on the web.xml, with only the filter set.

 The server is an AWS micro instance, normally I have at least 100 MB of
 free
 memory and a very low CPU consuption.

 There is any special setting for deployment of a wicket web applicaiton?

 Thanks.
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3174117.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Wicket web site down with a few hits

2011-01-04 Thread LucHub

Hi, thank you for the fast reply,

Nothing strange from tomcat logs, also the server is not out of CPU or
memory.

I still have to enable wicket logs and check with a non Hibernate app (i
omitted I'm using Hibernate)

I'll post. Thanks again
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3174316.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket web site down with a few hits

2011-01-04 Thread Martin Grigorov
dump the threads
maybe there is a deadlock

On Tue, Jan 4, 2011 at 9:25 PM, LucHub luca.abb...@luchub.com wrote:


 Hi, thank you for the fast reply,

 Nothing strange from tomcat logs, also the server is not out of CPU or
 memory.

 I still have to enable wicket logs and check with a non Hibernate app (i
 omitted I'm using Hibernate)

 I'll post. Thanks again
 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3174316.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Wicket web site down with a few hits

2011-01-04 Thread MZemeck
Just a hunchtry WicketServlet instead of WicketFilter (in web.xml)...



From:   LucHub luca.abb...@luchub.com
To: users@wicket.apache.org
Date:   01/04/2011 03:26 PM
Subject:Re: Wicket web site down with a few hits




Hi, thank you for the fast reply,

Nothing strange from tomcat logs, also the server is not out of CPU or
memory.

I still have to enable wicket logs and check with a non Hibernate app (i
omitted I'm using Hibernate)

I'll post. Thanks again
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3174316.html

Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.