Performance Blog

PHP dtrace extension for Cool Stack 1.2

Posted on: November 5, 2007

We have fixed the issue with the PHP dtrace extension not working in Cool Stack 1.2. As I mentioned in my announcement post, we had already identified the issue but didn’t have time to fix it before the release. The issue was that /usr/ccs/bin/ld was being used to do the linking but this doesn’t work for dtrace as some initialization code needs to be called from the .init section and this is not setup correctly if we don’t use ‘cc’ to do the linking (rather than ‘ld’). 

So a simple addition to the configure line:

did the trick.

We now have two files : and posted. Download the one for your machine and do the following :

  • Copy it to the php5 extensions directory of /opt/coolstack/php5/lib/php/extensions/no-debug-non-zts-20060613 and re-name it as
  • Add extension="" to your /opt/coolstack/php5/lib/php.ini. 

See my earlier post, for an example of how to use dtrace to trace through the AMP stack. 


4 Responses to "PHP dtrace extension for Cool Stack 1.2"

1. Why is the CoolStack stuff so difficult to find on the Sun Downloads page? Try looking for it in the downloads page. Nigthmare!
2. Are the Cool Stack applications now SMF aware?
It really ticks me off that Sun does all this cool stuff then makes it difficult to find and get. Grrr!

Hi Dave,
Long story short, we’ll be updating some of the other content so there are some better pointers. Specifically, the page and the OpenSolaris Web Stack project.
It was better to release it with updates where it originally came out and then go tidy up the other spots rather than release it later with all of the appropriate pointers updated.
Sorry for the inconvenience.
– Matt

Regarding SMF, yes – it’s there. Check out the Cool Stack page at for a complete list of changes in this version.

I just installed the Tomcat one and the SMF is all working nicely nice!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Shanti's Photo


Latest Tweets



%d bloggers like this: