Debugging Tip: Trace the Process and See What It is Doing with strace

Posted on in Categories Linux, Tips, Troubleshooting last updated April 10, 2008

strace is a useful diagnostic, instructional, and debugging tool. It can save lots of headache. System administrators, diagnosticians and trouble-shooters will find it invaluable for solving problems with programs for which the source is not readily available since they do not need to be recompiled in order to trace them. This is also useful to submit bug reports to open source developers.

Each line in the trace contains the system call name, followed by its arguments in parentheses and its return value.

Run strace against /bin/foo and capture its output to a text file in output.txt:
$ strace -o output.txt /bin/foo
You can strace the webserver process and see what it’s doing. For example, strace php5 fastcgi process, enter:
$ strace -p 22254 -s 80 -o /tmp/debug.lighttpd.txt
To see only a trace of the open, read system calls, enter :
$ strace -e trace=open,read -p 22254 -s 80 -o debug.webserver.txt
Where,

  • -o filename : Write the trace output to the file filename rather than to screen (stderr).
  • -p PID : Attach to the process with the process ID pid and begin tracing. The trace may be terminated at any time by a keyboard interrupt signal (hit CTRL-C). strace will respond by detaching itself from the traced process(es) leaving it (them) to continue running. Multiple -p options can be used to attach to up to 32 processes in addition to command (which is optional if at least one -p option is given).
  • -s SIZE : Specify the maximum string size to print (the default is 32).

Refer to strace man page for more information:
$ man strace

Sun To Offer Ubuntu Linux Based Servers

Posted on in Categories Hardware, Linux, Linux distribution, RedHat/Fedora Linux, Solaris, Suse Linux last updated March 19, 2008

Good news for all Debian / Ubuntu Linux fans. Sun has started to offer Ubuntu Linux based servers. Sun has systems competitively priced for small and medium businesses. Ubuntu is based upon rock solid Debian core. Look like Red hat and Novell going to have some nice competition. Sun offers x64-based systems certified for Ubuntu Linux:
* x64 Rack Servers

* Blade Servers

* x64 Workstations

* Workgroup Disk Storage

* Tape Automation

=> Sun SMB Product Page (Via Arun’s blog)

Red Hat and Ubuntu Linux Top Enterprise Open-source Software

Posted on in Categories Linux, Linux desktop, News, RedHat/Fedora Linux, Save money with FOSS, Ubuntu Linux last updated February 11, 2008

Both distros top in 260 countries; From the report:

Ubuntu and Red Hat Linux are the most used Linux distributions among the 35,000 members of content-management vendor Alfresco’s community, the company found in its second survey of trends in enterprise open-source software usage. Alfresco collected data between July and December of last year, with survey participants coming from 260 countries, according to the company. Fifty percent were from Europe, the Middle East, and Asia, while 24 percent were in the U.S., and 26 percent from other nations, Alfresco said.

=> Red Hat, Ubuntu top vendor’s usage study

Linux Success Story: Paypal Powered by 4000 Linux Server Grid

Posted on in Categories Business, Linux, Linux desktop, Linux distribution, Make money with Linux last updated December 7, 2007

This is yet another Linux success story. PayPal says Linux grid can replace IBM mainframes:

PayPal is currently processing $1,571 worth of transactions per second in 17 different currencies on about 4,000 servers running Red Hat Linux. Thompson supervises a payment system that operates on about 4,000 servers running Red Hat Linux in the same manner that eBay and Google conduct their business on top of a grid of Linux servers. “I have been pleasantly surprised at how much we’ve been able to do with this approach. It operates like a mainframe,” he said.

=> Read complete story here

Microsoft Patent FUD: Red Hat Linux User Will Have To Pay

Posted on in Categories GNU/Open source, Linux, Windows last updated October 9, 2007

Steve Ballmer believes that people who use Red Hat Linux have an obligation to compensate Microsoft He has warned users of Red Hat Linux that they will have to pay Microsoft for its intellectual property. SCO tried and failed badly to prove that it owns the intellectual property to Linux. They are facing bankruptcy.

Microsoft’s threatening IP action without any details

I also don’t know which intellectual property (IP) is Microsoft saying open source solutions are infringing on. They have denied giving out this information to the rest of us. Red Hat has repeatedly stated that it will not engage in a patent licensing deal similar to the Novell-Microsoft partnership, referring to its as an ‘innovation tax’. Microsoft inked a partnership with Novell last year in which Novell agreed to license Microsoft’s intellectual property in exchange for a patent pledge to users of Novell’s SuSE Linux.

Download of the day: Red Hat Developer Studio

Posted on in Categories Download of the day, Linux, RedHat/Fedora Linux, Windows last updated August 16, 2007

Red Hat Developer Studio is a set of eclipse-based development tools that are pre-configured for JBoss Enterprise Middleware Platforms and Red Hat Enterprise Linux. Developers are not required to use Red Hat Developer Studio to develop on JBoss Enterprise Middleware and/or Red Hat Linux. But, many find these pre-configured tools offer significant time-savings and value, making them more productive and speeding time to deployment. Red Hat Developer Studio will be available as a new subscription offering soon.

Use this studio to build java and ajax based application.

Download Red Hat Developer Studio

You can download Windows or Linux version here (530Mb).

Howto migrate from Microsoft Internet Information Server (IIS) to Apache on Linux

Posted on in Categories Apache, RedHat/Fedora Linux, Tips, Windows server last updated January 6, 2007

This is an interesting article.

For people migrating from Windows to Linux, the Apache Web server is entirely different world from Microsoft Internet Information Server. Apache can be alienating to IIS / Windows administrators, because migrating to Apache is more than just copying files.

The IIS to Apache migration process needs to be handled with the same care and perspective as the process of migrating desktops and their attendant applications. In some cases, IIS to Apache may be even more difficult and may have a larger impact on users and administrators.

In this article, author talk about the process of migrating a site from IIS to Apache, with Red Hat Linux as the specific target.