DTrace out of memory errors


While profiling an application with DTrace this week, I received the following error:

$ dtrace -p 19019 -s follow.d

dtrace: failed to compile script follow.d: line 21: failed to create
probe in process 19019: Not enough space

After a bit of googling, it looks like I was hitting the upper bounds on the number of probes that can be enabled. To fix the problem, I increased fasttrap-max-probes in /kernel/drv/fasttrap.conf from 250,000 to 1,000,000. Once I made the change, I ran update_drv to force the fastrap kernel module to re-read it’s configuration:

$ update_drv fasttrap

Now everything is swell!

This article was posted by Matty on 2006-03-04 11:10:00 -0400 -0400