Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - Stuck Connections
  FAQ FAQ  Forum Search   Register Register  Login Login

Stuck Connections

 Post Reply Post Reply Page  <12
Author
lyndonje View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 192
Post Options Post Options   Thanks (0) Thanks(0)   Quote lyndonje Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2006 at 9:13am
You could accuse me of thinking the same - first stuck connection 20/06 @ 16:26, since then I have 19 in total.
Back to Top
Desperado View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 January 2005
Location: United States
Status: Offline
Points: 1143
Post Options Post Options   Thanks (0) Thanks(0)   Quote Desperado Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2006 at 7:49pm

All,

I have been following this "Stuck Connection" thread for a while and am wondering under what conditions they are showing up? I have a fairly high traffic site (250,00 messages a day) and see no evidence of this at all.

The Desperado
Dan Seligmann.
Work: http://www.mags.net
Personal: http://www.desperado.com

Back to Top
lyndonje View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 192
Post Options Post Options   Thanks (0) Thanks(0)   Quote lyndonje Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2006 at 5:59am
Hello all...

Something else for you to try, not sure if this has anything to do with the stuck connections, but worth a try.

The other day I decided for no reason at all to uncheck the "Enable Activity Log" under the Activity Log tab. Since then I don't seem to of had any stuck connections?

Again this may be totally unrelated but thought I'd let you know so you can try it (if you don't already have the activity log disabled) to see if it makes any difference.

Regards,
Lyndon.
Back to Top
jerbo128 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 March 2006
Status: Offline
Points: 178
Post Options Post Options   Thanks (0) Thanks(0)   Quote jerbo128 Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2006 at 9:47am

Our background:

We are ruining spam filter on a Win2003 server that also runs MS DNS.  We do not receive a large amount of email - about 250K per month.  I leave the SF GUI running all the time, usually looking at the log screen.  We quarantine to a Ms access database which usually runs around 100-150MB.  Our quarantined emails expire after 7 days.  I would have no problem emailing in any of our files.  These stuck connections may not happen for 2-3 days, and then I may get 10 in one day.  I do not have an automated "service restart".  The service has never failed on us, however we usually do restart it once a week or so.  If there's anything I can do to help at all, let me know.

jerbo

Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2006 at 10:03am
Everyone,

When a connection is disconnected, the following occurs, in order, one right after the other:

1. The "Current inbound connections" counter is decreased.
2. The IP is added to the blacklist cache if it is spam
3. The "Disconnect" log entry is added to the activity logfile
4. The connection is removed from the Connections tab.

What we're seing in the logs we've received is that, for the connections that "appear" stuck, only events (1) and (2) happen. On the other hand, (3) and (4) are never executed, so the disconnect event is never logged to the logfile (and on the screen), and the connection is not removed from the list. Lyndon, you were right on the money on this one i believe, as I do think it is indeed tied to the activity log.
We've narrowed this down a lot thanks to all your help. Now that we know what happens, we're trying to figure out "why" and how to prevent it. We may have a new build later today.

Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2006 at 11:41am
Well.... build 3.0.1.578 is available to try one more time taking care of these stuck connections. If this works... I'll offer virtual beers for everyone!
Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
Dan B View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 February 2005
Location: United States
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dan B Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2006 at 8:13pm

I would say that the issue has been fixed with that .578 build.   All my stuck connections and very high CPU usage has stopped.   My servers are running back to normal.

Thanks, Roberto for the quick fix.

Dan

Back to Top
Dan B View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 February 2005
Location: United States
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dan B Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2006 at 12:32pm

R,

The .578 build has help a lot.  But I have question about the order of the settings within the ini file.  We have 4 identical servers same everything.  Spamserver 1 & 4 take care of our domain1.net equal MX preference of 5 and spamserver 2 & 3 take care of our domain housing domains.  I noticed that server 4 never had a problem with the 100% CPU and stuck connections.  Server 1,2,3 had those issues very bad even with the latest build.  Just for the heck of it, I copied the ini file from spamserver 4 and placed it on spamserver 1 and just changed the ip address, qualified name and serverid.  As soon as I restarted the service on spamserver 1 the stuck connections and the 100% CPU issues went away and didn’t come back.  Since it did so well, I did the same to the other 2 servers.  Exact same thing, all issues went away. 

So the question is does the order of the setting in the ini files have something to do with the stuck connections and high CPU%?

Thanks,
Dan B

Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2006 at 1:32pm
Everything is possible, especially since we were never able to replicate this behavior to begin with. I think we know "where" this was occurring in the code, but not "why".
...and without knowing the "why" it's very hard to fix the issue, as we do not know what the issue is...!

Are the stuck connections still present in 578? If you still have the two ini files that exibit the two different behaviors, I'd like to compare them to see if there's any clues.
Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
Dan B View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 February 2005
Location: United States
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dan B Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2006 at 1:43pm

I have the all 4 before and after the changes.  I will zip them up and send to you.  Do you need any logs from those servers?

Dan

 

Back to Top
Dan B View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 February 2005
Location: United States
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dan B Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2006 at 3:25pm

R,

Yes, the stuck connections were still present with 578 until I replaced the ini file with spamserver4's ini file.

Dan

 

Back to Top
lyndonje View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 192
Post Options Post Options   Thanks (0) Thanks(0)   Quote lyndonje Quote  Post ReplyReply Direct Link To This Post Posted: 28 June 2006 at 4:01am
I don't think I've had anymore stuck connections since installing 3.0.2.578.
Back to Top
jerbo128 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 March 2006
Status: Offline
Points: 178
Post Options Post Options   Thanks (0) Thanks(0)   Quote jerbo128 Quote  Post ReplyReply Direct Link To This Post Posted: 28 June 2006 at 1:18pm

Today, I have noticed that I always have 2+ incoming connections (from the status bar) however, when I look at the connections screen, those first 2 are not shown.   For example, when no connections show on the grid, the counter says 2.  When I have 5 active connections on the grid, the counter shows 7.

Any way that plays into your current thoughts with this stuck connections issue?

I am running the 3.0.2.578.

jerbo128

Back to Top
WebGuyz View Drop Down
Senior Member
Senior Member


Joined: 09 May 2005
Location: United States
Status: Offline
Points: 348
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebGuyz Quote  Post ReplyReply Direct Link To This Post Posted: 28 June 2006 at 4:32pm
I just checked my connection and had 4 showing but the incoming was showing about 14, 10 more then the actual connections screen was showing. As the number of connections increased/decreased the incoming was always showing 10 more than the conections screen. Its like the connections are still getting stuck we just just can't see them.   running .578

Edited by WebGuyz
http://www.webguyz.net
Back to Top
lyndonje View Drop Down
Senior Member
Senior Member
Avatar

Joined: 31 January 2006
Location: United Kingdom
Status: Offline
Points: 192
Post Options Post Options   Thanks (0) Thanks(0)   Quote lyndonje Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2006 at 3:36am
Mine seems to be +9
Back to Top
mikek View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 February 2005
Location: Switzerland
Status: Offline
Points: 133
Post Options Post Options   Thanks (0) Thanks(0)   Quote mikek Quote  Post ReplyReply Direct Link To This Post Posted: 29 June 2006 at 3:39am
+7 here... 
Back to Top
caratking View Drop Down
Groupie
Groupie


Joined: 13 March 2006
Location: United States
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote caratking Quote  Post ReplyReply Direct Link To This Post Posted: 01 July 2006 at 7:44am
Originally posted by LogSat LogSat wrote:

thanks for pointing that out, we'll look into that aspect
right now. As we're still not able to replicate this, we're open to any
suggestions / hints you all have.


I thought I would at least share some information with you guys, perhaps
related or perhaps not... since you have not cracked the case on this issue
yet.

I had spamfilter running for some time, no issues.

Then I started implementing REGEX filter of my own creation.

All of a sudden I started having issues much like everyone is describing
here. Stuck connections, and in my case 100% CPU usage as well.
Obviously the number of incoming connections would start to build up.

The problem could only be sorted out by shutting things down and
bringing it all back up again.

The problem went on for days and days, I was getting quite stressed.
Eventually I removed the REGEX filters I had put in place and bang the
problem was gone.

For fun I put the REGEX back online, and the problem came back right
away.

At that point I just pulled the REGEX stuff out and have not bothered with
them again.

The server would process thousands of messages and then start acting
up when the regex and some combination of email happened.

Something to consider anyway, just try removing the regex filters and see
if it goes away or not.

This also explains why not everyone has the problem, it may only show
itself with some combination of regex filters.
Back to Top
jerbo128 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 March 2006
Status: Offline
Points: 178
Post Options Post Options   Thanks (0) Thanks(0)   Quote jerbo128 Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2006 at 10:56pm

Roberto -

I have emailed my keyword file in to ya.

jerbo128

Back to Top
jerbo128 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 March 2006
Status: Offline
Points: 178
Post Options Post Options   Thanks (0) Thanks(0)   Quote jerbo128 Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2006 at 10:29am

The stuck connections on the connections tab problem has appeared to be solved, with us anyway.  However, the past couple of months, several times we have noticed the opposite problem as before.  The connections tab shows nothing, however the "current inbound connections" counter shows that there are incoming connections.  I have watched the counter / connections tab for quite a period of time, and it appears that the counter does not ever correct without a restart of the service.  Some times these connections appear right after a restart, other times the service has been running for a week or more before they show up.  I am running 3.1.3.597

Jerbo128

Back to Top
mikek View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 February 2005
Location: Switzerland
Status: Offline
Points: 133
Post Options Post Options   Thanks (0) Thanks(0)   Quote mikek Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2006 at 10:32am
I am seeing the same thing as jerbo - also running 3.1.3.597
Back to Top
WebGuyz View Drop Down
Senior Member
Senior Member


Joined: 09 May 2005
Location: United States
Status: Offline
Points: 348
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebGuyz Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2006 at 10:44am

My stuck connections is still going full bore. We have been having this problem for a few weeks and only a restart fixes it. We finally wrote a script to monitor the log file and alert us when we start getting 'Too Many Connections' we know that the number of connection has hit 40 (our setting in config for max connections) and its time to restart SF because of no free connections  If we look in SF connections we see 'stuck' connection about 30-40 connections. Eventually mail stops flowing because there are 0 connections freed. Talk about po'd customers. Probably have to find a way to automatically restart the service since this can happen any time. Was hoping this issue would be resolved by now but I guess not.

After restart if we perioically check the connections we see the condition you describing, connections page showing less then the number of connections listed at the bottom of the screen in the status area.

We removed all out regex filters per someones suggestion on this forum but it has made no difference. Some type of spam is triggering this but I don't see any way of figuring out what it is.

Are other still seeing these issues or is it maybe my environment.

Running 3.1.3.597



Edited by WebGuyz
http://www.webguyz.net
Back to Top
kspare View Drop Down
Senior Member
Senior Member


Joined: 26 January 2005
Location: Canada
Status: Offline
Points: 334
Post Options Post Options   Thanks (0) Thanks(0)   Quote kspare Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2006 at 11:23am
I've started to see this problem too. I am running 3.1.3.590
Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2006 at 12:19pm
Everyone,

While we've never been able to reproduce the problem, we *may* have found a possible way to avoid it. We've been working a bit in the dark as we could only guess what could be happening. Build 3.1.3.600 (containing the possible fix) was being tested internally to see if there were any unwanted side effects.

As there have not been any so far, and as apparently there are several of you experiencing this symptom, we've just released this verison in the registered user area.

We'd appreciate any feedback (yeah/nea) to let us know how it works.
Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
kspare View Drop Down
Senior Member
Senior Member


Joined: 26 January 2005
Location: Canada
Status: Offline
Points: 334
Post Options Post Options   Thanks (0) Thanks(0)   Quote kspare Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2006 at 9:39pm
So far so good. I have 0 stuck connections when I would have had about 10 so far.
Back to Top
WebGuyz View Drop Down
Senior Member
Senior Member


Joined: 09 May 2005
Location: United States
Status: Offline
Points: 348
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebGuyz Quote  Post ReplyReply Direct Link To This Post Posted: 09 October 2006 at 7:20am

I installed .600 this weekend and it looked optimistic Saturday and Sunday but his morning I'm 6 connections short and I'm sure it will climb as the traffic drags on.

http://www.webguyz.net
Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 10 October 2006 at 10:11pm
Everyone,

We're trying, with ZERO luck, to replicate this. If any of you have at least 10 "stuck" connections, could you please post or email us a screenshot of your "Connections" tab, and the output of the

netstat -n

command from a DOS prompt?
Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
LogSat View Drop Down
Admin Group
Admin Group
Avatar

Joined: 25 January 2005
Location: United States
Status: Offline
Points: 4104
Post Options Post Options   Thanks (0) Thanks(0)   Quote LogSat Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2006 at 9:35am
Update. We've made another attempt to change the code that counts the connections, and uploaded build 601 in the registered user area. Initial tests in an installation that hade the "stuck connection" issue look promising.
Roberto Franceschetti

LogSat Software

Spam Filter ISP
Back to Top
 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.322 seconds.