• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

posting is a problem

 
Arvind Mahendra
Ranch Hand
Posts: 1162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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*
 
paul wheaton
Trailboss
Pie
Posts: 21387
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
Brian Legg
Ranch Hand
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Brian Legg
Ranch Hand
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done, Ernest.
 
Brian Legg
Ranch Hand
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice job
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic