Unix/Linux Go Back    


UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

Having too many connections could affect performance ?

UNIX and Linux Applications


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-08-2017
alexcol alexcol is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 19 April 2017, 8:49 PM EDT
Location: Bogota - Colombia - South America
Posts: 88
Thanks: 3
Thanked 1 Time in 1 Post
Having too many connections could affect performance ?

Good evening, i need your help please

I will try to describe the scenario briefly: In a Telecom Production system application receives a certain files called CDRs(call detail records) to be processed by doing some operating systems operations and then database operations like creating indexes and uploading to a Central Database-

The applications server and database is quite obsolete OSF1 and oracle 9i.

Many times the applications turn very slow to process so performance is overheated. Of course There would be many causes for overheated performance, and it is premature to identify the problem at first glance.

So Could you tell me if below theories could affect Performance ?
  1. I run netstat command and displays more than 102 connections some of them established state, some of them time wait, etc. So the question is having many connections could affect the performance of the application?
    If I killed and restart connections would be a good idea to improve performance?
  2. Having one or more Filesystem backups could affect Performance too ?

I appreciate your answers in advanced or if u have any other reason that could impact its performance let me know. Thanks

Last edited by rbatte1; 02-09-2017 at 04:19 AM.. Reason: Converted textual list to formatted numbered list and corrected spellings
Sponsored Links
    #2  
Old Unix and Linux 02-09-2017
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Administrator
 
Join Date: Jul 2012
Last Activity: 30 April 2017, 1:28 AM EDT
Location: San Jose, CA, USA
Posts: 10,225
Thanks: 514
Thanked 3,550 Times in 3,023 Posts
With what you have told us, the application could be a huge bottleneck, the application server could be a huge bottleneck, the database server could be a huge bottleneck, the database application could be a huge bottleneck, or any combination of the above could be a bottleneck.

Running a filesystem backup while running applications that are using files on that filesystem is VERY likely to affect performance of those applications and of the backup software.

We have seen examples in this forum of text processing code that invokes several processes to produce output for each line read from a file containing a few thousand lines that literally ran for more than 10 hours. When that code was replaced by a single awk script with the output fed into sort, the script ran in less than 10 seconds and produced exactly the same output. Could your application code have a similar issues?

To figure out where you need to look, you first need to know what are your major stumbling blocks. Are you swapping processes in and out a lot? (Need more memory?) Are your disks thrashing? (Put files on different filesystems on different disks/controllers?) Are your CPUs running at 100%? (Badly written code or too many users on your system?) Is your network dropping packets? (Loose connections, faulty routes to servers, failing hardware, etc.?) ... ... ...
Sponsored Links
    #3  
Old Unix and Linux 02-11-2017
alexcol alexcol is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 19 April 2017, 8:49 PM EDT
Location: Bogota - Colombia - South America
Posts: 88
Thanks: 3
Thanked 1 Time in 1 Post
Thanks you very much for your Analisis and contribution to my concerns. but what do you mean when you say your major stumbling blocks ? i didnt get it.

---------- Post updated at 06:40 PM ---------- Previous update was at 06:18 PM ----------

sorry i know what you meant, i ve got it. thanks

---------- Post updated at 06:53 PM ---------- Previous update was at 06:40 PM ----------

which administrative commands can i use besides top for finding the stumbling blocks you mention and taking account the OS is obsolete ?

Thanks for your help
    #4  
Old Unix and Linux 02-12-2017
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 29 April 2017, 2:24 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,407
Thanks: 99
Thanked 1,491 Times in 1,108 Posts
Quote:
Originally Posted by alexcol View Post
So Could you tell me if below theories could affect Performance ?
  1. I run netstat command and displays more than 102 connections some of them established state, some of them time wait, etc. So the question is having many connections could affect the performance of the application?
    If I killed and restart connections would be a good idea to improve performance?
  2. Having one or more Filesystem backups could affect Performance too ?
Many network connections might affect performance, but right now it isn't even established if you have "many" of them. Connections in the stated of "TIME_WAITING" will not contribute to the load at all and your suggested solution of killing and restarting connections would definitely not help at all.

Running filesystem backups could very well degrade performance but if that is the case or not we can't say.

Quote:
Originally Posted by alexcol View Post
T
which administrative commands can i use besides top for finding the stumbling blocks you mention and taking account the OS is obsolete ?
You might want to read this little introduction to performance tuning i wrote. Most of the tools mentioned there should work for you and most of the concepts explained there should apply to your server.

I hope this helps.

bakunin
Sponsored Links
    #5  
Old Unix and Linux 02-13-2017
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 30 April 2017, 2:18 AM EDT
Location: Simplicity
Posts: 3,509
Thanks: 274
Thanked 1,164 Times in 1,056 Posts
For OSF1 I found this resource
You might want to tune the following
Quote:
somaxconn=1024
tcbhashsize=1024
maxuprc=256
But it takes memory. You should have 2GB RAM at least.

Last edited by MadeInGermany; 02-13-2017 at 04:45 PM..
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
affect a exploded a string into an array ripat Shell Programming and Scripting 8 06-11-2009 09:37 AM
.profile - changes don't affect the login myle UNIX for Dummies Questions & Answers 8 03-10-2008 06:41 AM
affect variable kamel.seg Shell Programming and Scripting 7 01-02-2008 09:37 AM
changig uid and the affect it will have d__browne UNIX for Advanced & Expert Users 2 03-29-2006 10:06 AM



All times are GMT -4. The time now is 03:16 AM.