Tag Info

Hot answers tagged

61

cat /proc/<pid>/environ If you want to have pid(s) of a given running executable you can, among a number of other possibilities, use pidof: AlberT$ pidof sshd 30690 6512 EDIT: I totally quote @Teddy comment to achieve a more readable output: xargs --null --max-args=1 < /proc/self/environ


24

Since this question has a unix tag and everyone else has done such a great job addressing linux tag, you can get this information on OS X and other BSD-derived systems using ps -p <PID> -wwwe or ps -p <PID> -wwwE and on Solaris with /usr/ucb/ps -wwwe <PID>


19

First Order: Is it responsive? If you can't log in, there's bigger problems afoot. This generally comes in two flavors: hardware failure, and software failure. Both are potentially catastrophic. To prevent DFA errors, check the general hardware health first - a simple glance-over usually will suffice. Second Order: Are the system's underlying structures ...


18

Its a time bomb Backup the hard drive right now if you don't have a backup already (professionals should be taking regular backups of critical data anyway). You might also consider cloning the drive if you have the required software or hardware; both to ensure you have everything and to make a replacement drive. I do not suggest shutting the drive off if ...


15

There are three concerns as I see them: Changes to the physical workspace, changes to computer-specific properties, and changes to user-specific properties. I would tend to err on the side of treading lightly re: changes to the workspace. Common sense says that making any changes to the physical workspace is a bad idea, IMO. That would include changing ...


10

This isn't totally unheard of, a machine may have had an alias assigned to a network card previously which the network admin doesn't know about, etc. The obvious thing to do is find the MAC address of the responding server, that should be easy to do. Run "arp -a" from a command prompt on the SQL server, and look for both the 10.40.1.205 and 10.40.59.69 ...


10

The file ibdata1 is the system tablespace for the InnoDB infrastructure. It contains several classes for information vital for InnoDB Table Data Pages Table Index Pages Data Dictionary MVCC Control Data Undo Space Rollback Segments Double Write Buffer (Pages Written in the Background to avoid OS caching) Insert Buffer (Changes to Secondary Indexes) ...


9

Let me start with the list: General: Install most current updates/service packs. Verify drivers, look for conflicts, upgrade to newer ones. Use Process Explorer to see a bit more details about what's being run Use Process Monitor(combined filemon and regmon) to see details about particular process Check the services - (services.msc from command prompt). ...


8

Something that we use is SQLH2 (SQL Server Health and History). It's created as an add on pack from Microsoft and has a good set of "get you going" reports for SQL Servers, and it's free! SQL Server Health and History MSDN If you are only looking for periodic heath checks, then you can set these reports up on a schedule to email them to you weekly. If ...


8

When a drive detects a bad sector/cluster, depending on the type and recoverability of the error, it will sometimes reset the head position. The head motor is reset, and it returns to its spring-loaded park position. As a result it moves way over to the side of the drive. If it was far enough and was reset unexpectedly enough, the head swing arm hits the ...


8

As others have mentioned, on Linux, you can look in /proc but there are, depending on your kernel version, one or two limits: First of all, the environ file contains the environment as it looked when the process was spawned. That means that any changes the process might have made to its environment will not be visible in /proc: $ cat /proc/$$/environ | wc ...


7

To check the latency on a network: Run a continuous ping from the command line: ping -t [destination IP DNS or hostname] Do this: From your PC to the users PC Your PC to the file server Your PC to Internet sites etc. If any of these are slow, then run: tracert [destination IP DNS or hostname] to see where the issue is. To check the bandwidth of a ...


7

Setting up a wireless network in a 4000 square foot space requires either an extremely knowledgeable installer, or having someone who owns some proper testing equipment. You will need to do a survey of the room, including finding out what sort of background noise there is, and if there are other networks on the same spectrum. You will then have to plan the ...


7

In my experience, most users will not read directions like this, no matter how simple. If they see it as your job to make the technology beepy blinky things work, they're going to call you. They don't care what you'd like them to do because it's your job to "make it go." The most we expect users to do is either restart the computer or check that cables are ...


6

To check top 20 largest consumer of physical memory (resident set size). crash> ps -G | sed 's/>//g' | sort -k 8,8 -n | awk '$8 ~ /[0-9]/{ $8 = $8/1024" MB"; print }' | tail -20 To check the number of hugepages. crash> p -d nr_huge_pages Update: A) crash dump was captured from following kernel version. $ crash --osrelease vmcore.flatĀ  ...


6

A router's job is to route packets. It's not a ping responder. It can route packets just fine even if it can't respond to pings. Since you're seeing latency of less than a hundredth of a second to the hop after it and no packet loss, I'd say it's routing just fine. How can hop 7 be smaller than 6 and 8 smaller than 7 and 6!?? Shouldn't the pings be ...


6

The cache is in SystemRoot%\CSC folder, but MS says you shouldn't edit that manually. Here's the KB to re-initialize the cache: http://support.microsoft.com/kb/230738 You could also ctrl-shift click the "Delete Files" button in the "Offline Files" tab under explorer->Tools->Options. If you just want to sync to the new server, csccmd.exe /moveshare, from ...


6

You should be able to just manually short-circuit the power-on pins on the motherboard itself - the ones the on/off switch is connected to. Disconnect the switch and bridge the pins together, you could use the edge of a screw driver even - if you're a bit careful. As you have switched motherboard and power supply at least once most other reasons I can think ...


6

Is the system running an existing version of Windows? Then you should just be able to extract the contents of the iso (say with winrar or virtual clone drive) to another partition and run the setup.exe. Here's a guide.


6

I always follow this approach: Try to test one thing at a time. The trusty "Scientific method" works really well for troubleshooting: Come up with a theory for why the app is slow Devise a test that may confirm that theory. repeat. For a webapp this might mean: could it be the databse? Run some standalone SQL queries could it be the web server? Test ...


5

For web based "Choose Your Own Adventure" style documentation it is hard to beat a wiki. It is easy to have a page that looks like: DHCP issues Run ipconfig [help running ipconfig] and note the assigned IP address. If the IP address starts with: 169.254 see [diagnosing dhcp failures] 192.168 see [tracking down and reporting a rogue dhcp ...


5

I will generally try and avoid needing to physically access a user's machine where possible. Technologies such as RDP and VNC generally allow a large amount of problem solving to be done remotely, often with the user present. However there are times when there is no substitute to being physically at the PC. In these cases I will try and let the user know ...


5

A number of things could cause this (firewall, other inbound port blocking problems, VMWare NAT'ed without port forwarding, MySQL not listening on the correct interface / MySQL not running networking, incorrect MySQL grant...) Things to consider: Is MySQL running and running with networking (you may need to specify a user/pass for these)? ...


5

You haven't got A records for your nameservers ns1.main.com and ns2.main.com. The named-checkzones hasn't worked as it is warning you that you haven't got A records for your nameservers: zone main.com/IN: NS 'ns1.main.com' has no address records (A or AAAA) zone main.com/IN: NS 'ns2.main.com' has no address records (A or AAAA) So you need to add ...


5

It sounds like your server is IO bound - hence the processes sat in D state. Use iostat to see what the load is on your disks. If MySQL is causing lots of disk seeks then consider putting your MySQL data on a completely separate physical disk. If it's still slow and it's part of a master-slave setup, put the replication logs onto a separate disk too. ...


5

Windows 2003 SP1 went out of support in April, so your OS does not get any security patches anymore. You need to upgrade to SP2 ASAP. SP2 also has lots of random bug fixes in it - your issue could go away. If your OS has that old a patch level, there is a good chance some drivers - specifically print drivers - could be out of date on the box too. As ...


5

Your SMTP logs should give you the information you need. They should tell you: If you are greylisted (some mailsystems require you to keep trying for a period of time to discourage spammers) If you are on an RBL (or at least if the receiving server recognizes it) If the receiving mailserver is too busy and is delaying reception How many attempts the ...


5

I got roped into being the 'DBA' for my company. I was tasked with this same thing. I came across a blog by Brent Ozar about it. Perfmon is a great way to get started with performance testing. More in depth approach is using SQL Server Profiler. I just downloaded a free ebook from redgate.


5

Check the duplex settings on the network ports. If one end of a network link is set to 100baseT full duplex, and the other is set to auto-negotiate, the auto-negotiating end will always go half-duplex. This wouldn't reveal itself with simple ping tests, but any substantial traffic over the link will be a lot slower than it should be.


5

In slightly random order: power cycle your wifi router. if it's plugged into an ethernet modem, power cycle both - starting with the ethernet modem (wait till you see its "connection" light come on) if you're using combined 802.11g/n (or 802.11b/g) on the router, are you sure all your hardware is 802.11n (or all 802.11g?) set the router to N only (or G ...



Only top voted, non community-wiki answers of a minimum length are eligible