Networking :: Netstat Displaying Wrong Process Name/id?

Feb 9, 2010

While running some live tests last week I saw an odd situation where netstat appeared to be displaying the wrong PID and process name for TCP connections. I'm trying to figure out if this is just a strange netstat bug or if it could indicate something odd is happening with our software.

We have a main program which establishes a number of connections, including connecting to a JMS server and listening/accepting a TCP connection. The main program also creates a child process which it uses to communicate with another server. On at least three occasions we saw a situation we saw netstat reporting all the expected TCP connections (correct ip/port for both source and destination), however the child process, instead of the main, was listed for the PID. The main process was still running but netstat no longer reported any TCP connections established by the main program. The main program continued to function correctly, the JMS communication continued to work and we believe the other TCP connection was functioning correctly despite the program supposedly not having any TCP connections.

I'm wondering if this could simply be a bug and/or obscure functionality of netstat that I don't understand which would cause netstat to report the child process as 'owning' the parents TCP connections. I don't know how this would happen or why the parent would continue functioning despite the problem otherwise.

View 1 Replies


ADVERTISEMENT

General :: Where Does Netstat Get The Process Name

Jun 25, 2011

I am developing a node application and there is an option to set the process title (process name). This only sets it in some tools (like ps and top), but not in htop or netstat.

I found this article that explained how most applications do it, but it doesn't change in netstat.

That lead me to wonder where those programs are getting the process name. Would they be getting it from /proc/##/cmdline? (## being the PID of the process)

I figure messing with things in /proc is a bad idea (and probably not possible), so if this is where those programs are getting it, is there a way to change it?

View 1 Replies View Related

Programming :: Displaying Process Id In Shell Script But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh Code: #!/bin/bash

result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')
echo $result
if [ "$result" == "" ];

[code]...

View 4 Replies View Related

Ubuntu :: Cat /proc/cpuinfo Displaying Wrong Info

Feb 17, 2010

I recently built a new computer. For CPU, I am using AMD Athlon II X2 @ 2.8GHz... However, when I do cat /proc/cpuinfo, I get the following:

processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 6
model name : AMD Athlon(tm) II X2 240 Processor
stepping : 2
cpu MHz : 800.000
cache size : 1024 KB

and same thing for processor: 1 Notice that for cpu MHz, it says 800.000. However, that is not correct... Shouldn't it say 2800? Is this a bug? Am I looking at this wrong?

View 2 Replies View Related

Ubuntu Installation :: GParted Displaying Wrong Partitions?

Feb 24, 2011

I have installed ubuntu many times before and never encountered this problem. The installer shows partition sizes which do not match my current sizes at all. This occurs during LiveCD too, I have taken a screenshot of the problem. GParted seems to be showing incorrect partitions while the one the right is correct.

View 9 Replies View Related

Ubuntu :: X Apps Via SSH - Displaying Already Running Instance Of A Process

Jan 5, 2010

how to configure X11 forwadring over SSH so, that when I open any app over SSH, I get displayed window of a process that is already running on my server (in case its running ), not a new instance of it.

View 3 Replies View Related

Networking :: Netstat - Dropped Packets Under IP

Feb 13, 2009

I have question regarding netstat? When performing a "netstat -s" I receive the following information regarding dropped packets under IP:

IP:
93978695 total packets received
0 forwarded
0 incoming packets discarded
79472157 incoming packets delivered
65235033 requests sent out
29527 outgoing packets dropped

However if I run a "netstat -i" I have no dropped packets whatsoever: (apologies for the table format):
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
bond0 1500 0 34326528 0 0 0 72755307 0 0 0 BMmRU
bond0:1 1500 0 - no statistics available - BMmRU
bond1 1500 0 28605491 0 0 0 20948952 0 0 0 BMmRU
eth0 1500 0 34199550 0 0 0 72755278 0 0 0 BMsRU
eth1 1500 0 126978 0 0 0 29 0 0 0 BMsRU
eth2 1500 0 97911 0 0 0 1 0 0 0 BMsRU
eth3 1500 0 28507580 0 0 0 20948951 0 0 0 BMsRU
lo 16436 0 34094225 0 0 0 34094225 0 0 0 LRU

View 5 Replies View Related

Networking :: Understanding Netstat TCP Port

Aug 1, 2011

I have an application that uses port 8080 all the time. One time, for some reason, it was taken by I didn't know what.

View 2 Replies View Related

Networking :: Netstat Command - No Support For IP Masquerade

Nov 23, 2009

While issuing the command netstat -M it shows netstat: no support for `ip_masquerade' on this system. But this system is used as a gateway and iptable rules are set for ip forwarding. Also internet is getting another machine through this machine. What about the message?

View 3 Replies View Related

Networking :: Netstat Port State IDLE

Jun 8, 2011

with netstat i found a port with idle state, i google the meaning of IDLE:Idle, opened but not bound.What do you mean by bound?

View 2 Replies View Related

Networking :: OpenVPN Server And Netstat -tunp

Jan 8, 2010

When the centos is running a vpn server, there 's a client connecting. The connection can't be seen by netstat -tunp

View 4 Replies View Related

Networking :: Using Netstat Command - 54406 Established?

Dec 1, 2010

I just found something "strange" by using netstat
tcp 0 0 myhost.deprecated:53719 amaretti.chimfar.:54406 ESTABLISHED
How can I check what is the program that is responsible for this line?

View 2 Replies View Related

Ubuntu Networking :: Port Open In Iptables But Nothing In Netstat?

May 16, 2011

I need the port 27015 to be open. I've opened it in iptables :

Quote:

iptables -A INPUT -p tcp -i eth0 --dport 27015 -j

But when i try :

Quote:

netstat -nan

The port 27015 do not appear as "LISTEN".

View 1 Replies View Related

Ubuntu Networking :: Netstat Shows Web Server Connecting To Itself?

Jul 14, 2011

I've been experiencing some home web-server slowdown issues lately, and I wanted to see if it's a problem with the server itself. I'm not sure if this might be the problem, but upon checking netstat -tn, I see over 15 instances of the following:

[Code]...

where 192.168.2.9 is the server's local address, the local address port varies, and the foreign address is the server's web address. If anyone knows what might be causing this and/or how to fix i

View 1 Replies View Related

Networking :: (Netstat -pl) Foreign Host Can Connect From Any Port (IPP)

May 12, 2010

Netstat has always confused me. I ype netstat -pl and get this:

Code:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:ipp *:* LISTEN 1476/cupsd
tcp 0 0 localhost:postgresql *:* LISTEN 13816/postgres
tcp 0 0 *:44223 *:* LISTEN 1288/sshd
tcp6 0 0 localhost:ipp [::]:* LISTEN 1476/cupsd
tcp6 0 0 localhost:postgresql [::]:* LISTEN 13816/postgres
tcp6 0 0 [::]:44223 [::]:* LISTEN 1288/sshd
udp 0 0 *:bootpc *:* 1267/dhclient

I assume that *:* means that any foreign host can connect from any port, but then what does [::]:* mean? and localhost:ipp... what port is ipp? Shouldn't ports be numeric?

View 1 Replies View Related

CentOS 5 :: Test Reinstall On VMWARE But The Installation Process Was Wrong?

Jul 22, 2010

I install CentOS5.5 on VMWARE,the system is working properly.I want to test reinstall CentOS5.5 on VMWARE,So,I make a snapshot.My system partition(Manually partition )is:/(1G),/boot(512M),swap(2G),/usr(30G),/var(10G),/data(20G).Each partition is independent of the ] partition.I reinstall CentOS5.5 by CentOS5.5.ISO.I format / partition,and other partition unchanged.However, the installation process was wrong:

==============================================================
Package Installation
Error running transaction[code]...

How I can reinstall CentOS(Do not lose important data)?Does there have any authoritative description?

View 4 Replies View Related

Networking :: Netstat Command - Huge Amounts Of Small Packets

Nov 30, 2009

I have a small office network (about 30 machine) with linux gateway (6Mbps internet bandwidth). Every user get only 500Kbps bandwidth, and they use the internet very poor. The internet getting slow lately, and I noticed that there are huge amount of small packets (78 byte, 48 byte) coming to linux machines. My question is: How can I solve which machine(s) sending those small packets? Do you have any ideas with netstat command?

View 1 Replies View Related

Networking :: (Netstat -s) Bits Or Data Packets Transferred Counts?

Sep 15, 2009

Using netstat I can get a lot of network related information which is pretty useful at times. But when I use for example 'netstat -s' it gives me a lot of counts for bits transferred or data packets transferred etc. Now one thing I am not sure of is that for how long those counts will keep rolling and when will they get reset (when I restart the machine?, when I restart the network services? Or if there is some kinda threshold set on it?) How exactly netstat counts those things (I mean what is the source of those counts for netstat).

View 2 Replies View Related

Networking :: Netstat Shows Multiple Identical Instances Of Connection

Jan 4, 2010

We are running a combination of Apache-2 with mod_jk connecting to tomcat workers running on separate hardware.Strange: "netstat -tn" on the Apache server outputs identical combinations of source address, source port, destination address and destination port.

Has anybody else experienced this phenomenon? (I googled and searched LQ but couldn't find anybody else reporting this)Is netstat broken, or is there another explanation?

View 5 Replies View Related

General :: Ubuntu: Tool For Displaying Disk Activity In General And By Process?

Oct 12, 2010

My Ubuntu system is occasionally becoming very sluggish. I'm running many things simultaneously and it's very difficult to tell which program is the culprit.

I suspect that the sluggishness is due to disk activity since the CPU usage is consistently under 50% on each of the 4 cores of the CPU, and over 30% of the 6GB of RAM are free.

Is there a tool that can show me in real time the number of disk IO operations per second and the amount of data read/written per second? Can all this info be broken down and displayed per process?

View 2 Replies View Related

CentOS 5 Networking :: Reset (clear) Statistics For The "netstat -s"?

Dec 21, 2010

How to reset (clear) statistics for the "netstat -s"?

View 1 Replies View Related

Networking :: NTOP Not Displaying Ssh Protocols

Jan 4, 2011

I have setup NTOP on Centos 5.5 and am not seeing traffic that I am supposed to be seeing. We have a product that uses many different services including ssh. I have this system as a target on mirrored ports but am not seeing any ssh connections or activity when I look at the host machine that is connected to the target ssh client and vice versa. When I look under TCP/UDP Service/Port Usage it is not displaying all the services that are being used especially SSH. What could it be?

View 5 Replies View Related

Networking :: Displaying Network Usage Stats

Jul 13, 2010

A small "mom and pop" WISP would like to provide account usage information to customers.Basically, when a person connecting to the WISP's web site is a customer with an IP address from within the WISP's subnets, a link would appear on the web page where customers could read total bandwidth usage (daily, weekly, monthly, and yearly totals and averages) and public IP address. Information could include the top five bandwidth URLs visited; graphs or charts of usage; and usage during specific periods, such as business hours (8AM-5PM), evening hours (5PM-10PM), night (10PM-8AM), and weekends (10PM Friday-8AM Monday).

The WISP has installed cricket (http://cricket.sourceforge.net) and rrdtool (http://oss.oetiker.ch/rrdtool). The next trick is to grab and format the data for customers.I'm not looking for answers like "look at xyz package." Helpful responses will include a rudimentary outline to solve the problem. That is, "xyz package" might indeed be what the WISP needs, but some guidance how to use xyz is needed to move down the road.I have no experience with this type of thing. I appreciate responses from people who are experienced.

View 2 Replies View Related

Networking :: Displaying Bandwidth Usage Information On Network

Apr 9, 2009

I have a network connection between 3 computers sharing the same net bandwidth with the same router (modem), I wanted to know how much every one of this network taking from the bandwidth, I want an easy program like switch-sniffer (see the pic) to scan the network and tell me how much every one taking from this network in real time.

View 14 Replies View Related

Networking :: Samba Displaying A Windows Share Incorrectly

May 3, 2011

I have a linux box that I'm using to mount a windows 7 share with samba or cifs. The mounting itself goes fine, but directories with more subdirs or files do not seem to have all the content they actually have.

For example, viewing my music folder shows only first 37 subdirs. The ls says "total 49", which is the correct amount, but the listing itself shows only 37 first in alphapetical order.

On the other hand, my wallpaper folder contains 122 files. Ls claims there is 41872 and displays only 70.

Adding the mount option noserverino increases the listed files or dirs, but it still does not show them all.

I've tried to enable debug printk level, but dmesg doesn't show anything interesting.

I've tried to change values in /proc/fs/cifs, but it does not seem to have any effect.

I've tried changing samba package. So far I've tested with 3.5.7, 3.5.2, 3.5.4 and now 3.5.8.

My distribution was yesterday slackware 13.1. Today I upgraded to 13.37 (with samba 3.5.8) but the problem persists.

I've tried with kernel versions 2.6.35.12, 2.6.38.2 and 2.6.37.6.

View 5 Replies View Related

Networking :: Split Routing - Traceroute Not Displaying Unrouted Hops

Dec 16, 2010

I've used linuxquestions.org from time to time, but never needed to register until now.An in-depth explanation of this issue is already described over here: [URL], so I will merely quote it again here - it seems nobody knows the solution over at Ubuntu's forums...:

Quote: I recently switched my home server from debian lenny to ubuntu maverick. I've managed to port all my configs and stuff and so far I'm very happy. There's one tiny thing that's griping me, that I never experienced before with debian's (older) packages/configuration... Here's the situation: My server dials up 2 pppoe (adsl) interfaces (different isp's) with split internet routes.

If I run a general traceroute to an internet IP, all the hops which are not routed via the same interface as the destination host/IP, will appear as "* * *" in the traceroute. This was never the case before and it would be preferred to see the IP's of all routers along the way regardless of whether they are routed... (I used to be able to see IP's like 10.0.0.x before through INTERNET traceroutes if they were hops along the way [IP's which would be unreachable if traced directly], and that's no longer the case) - isn't this kinda defeating the point of traceroute?

[Code]...

View 10 Replies View Related

General :: Sendmail-2 - Wrong Number Of Instances Of Process Sendmail - Expected Instances Equal

Jun 15, 2011

I have bees assigned a problem which states that :

sendmail-2: Wrong number of instances of process sendmail:, expected instances equal 1 but found 0

THats it...what exactly this means and how should i proceed for solving this problem...

View 1 Replies View Related

Ubuntu :: How To Analyze Netstat

Apr 7, 2010

I need to know what this means and what to do to fix this. code...

View 9 Replies View Related

Security :: Netstat Output Has No Address?

Apr 19, 2011

I've never seen the type of output from netstat and don't have a clue what it means.Quote:

tcp 0 0 :::8009 :::* LISTEN 31673/java
tcp 0 0 :::22 :::* LISTEN

[code]...

View 7 Replies View Related

Debian :: Netstat Showing Google IP Address

Jan 29, 2016

I have just installed a new clean version of debian. an hour later I have used the netstat to check connections and I see this :

The (italic) is me, but the first IP with 104.155. I have searched it on google and it says Google INC. Why is deb connected to it ?

somehost@delldebc2:~$ netstat -actun
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:43182 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN

[Code] .....

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved