GeeCON Prague 2014*
The moose likes Ranch Office and the fly likes posting is a problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "posting is a problem" Watch "posting is a problem" New topic
Author

posting is a problem

Arvind Mahendra
Ranch Hand

Joined: Jul 14, 2007
Posts: 1162
whenever i make a post all i see see is "saving.." and i never get confirmation if the post has been made, I don't get redirected to the post I made and I don't get a "sit tight we;re taking you..." message like I used to get with the old JR.


I want to be like marc
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
We are aware of the situation and have been working hard of trying to find the cause of the problem.

Eric
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
In this case, I copy my contents,cancel the current request, again click on post reply button and click submit. Voila
Mostly in the second attempt it works (if you are lucky )
Brian Legg
Ranch Hand

Joined: Nov 07, 2008
Posts: 488
I too am having many problems posting on the JavaRanch. I would say that 1 in 4 posts will not succeed and will not be recoverable. I don't like to retype posts so this makes me abandon the thread where someone could have been helped. Also, about 1 out of 20 posts crashes my browser entirely. I am running Win XP, IE 7 or FF 3, and 1G ram.


Also, refreshing takes forever.

*is done complaining*

SCJA
~Currently preparing for SCJP6
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20586
    ∞

I think Ernest worked himself to death to fix this. So - can you all verify that the problem went away while we try to find the right brand of whiskey that will revive Ernest?


permaculture Wood Burning Stoves 2.0 - 4-DVD set
Brian Legg
Ranch Hand

Joined: Nov 07, 2008
Posts: 488
I can verify that posting is much better today. The site kept going down yesterday (I assume you were working on it) but so far all today I have had no problems at all!!

Nice work Ernest!!

EDIT: Don't forget, in the spirit of JavaRanch, to post your solution as well Ernest!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Glad to hear you can confirm the improved behavior.

I'm happy to share the details, as it's the kind of thing that could happen to anybody. What I found was that JForum was using a standard thread pool to handle the work of sending email notification messages (the ones you get if you're watching a thread.) The default behavior of this standard thread pool was to run a request on the calling thread if the thread pool was "full", so the request wouldn't be lost. The long delay after a reply was occurring when there was a large volume of email, the mail server was backed up, the pool was full of threads waiting to connect to the mail server, and a request was being forced to handle email notification synchronously. The lost posts were caused by a database connection timeout due to that long delay.


[Jess in Action][AskingGoodQuestions]
Brian Legg
Ranch Hand

Joined: Nov 07, 2008
Posts: 488
So what was the fix? Making the mail server request asynchronous?

edit: I guess you could also just increase the timer for the DB timeout, but that wouldn't speed things up at all. Of course, I have no idea what I am talking about anyways
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Brian Legg wrote:So what was the fix? Making the mail server request asynchronous?


Using the default thread pool configuration meant losing posts under high system load, but ensuring mail would be delivered. I changed the pool strategy and increased the size of the pool, so that we'll never lose posts, but under even more extreme load (5x as bad) we'll start to drop notification emails. I think that's a good trade for now. We're going to look at a more sophisticated queuing solution that could store the failed messages and resend them at a later time.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39084
    
  23
Well done, Ernest.
Brian Legg
Ranch Hand

Joined: Nov 07, 2008
Posts: 488
Nice job
 
GeeCON Prague 2014
 
subject: posting is a problem