Displaying 20 results from an estimated 20000 matches similar to: "Getting number of bytes returned to application by free()?"
2006 Mar 03
3
Using DTrace to locate memory leak
Howdy,
I am attempting to isolate the location of a memory leak in a 4GL program,
and have hit a bit of a snag. When I LD_PRELOAD libumem and run the
application server, "::findleaks -fdv" reports numerous leaks:
CACHE LEAKED BUFCTL CALLER
0000000100b49068 15 0000000100ef2d50 fdcon+0x6c4
0000000100b50028 1 0000000100b72ac0 fdcon+0x6c4
0000000100b49068
2005 Dec 21
1
ustack() issues && correlating SIGSEGV activity?
Howdy,
I was playing around with the malloc/free D script provided by
Philip Beevers:
http://www.opensolaris.org/jive/thread.jspa?threadID=4224&tstart=15
And decided to change the free:entry probe from:
pid24169::free:entry
/ sz[arg0] /
{
printf("Freeing %p (size %d)\n", arg0, sz[arg0]);
sz[arg0] = 0;
}
to:
pid24169::free:entry
/ ! sz[arg0] /
{
printf("[ *
2005 Nov 22
6
DTrace #include problems
Howdy,
I am trying to migrate several scripts to use application defined types,
and am running into a few issues. When I attempt to run a script with a
application defined type, it looks like the DTrace preprocessor is getting
angry with me:
$ cat view.d
#include "httpd.h"
:::acceptconnection
{
this->addr = (conn_rec *)copyin(arg0,sizeof(conn_rec *));
}
$ dtrace -C
2008 Dec 08
1
Does DTrace have "-xmangled" to support C++? Apple has done that
Hi,
To use DTrace on some C++ code, I found that Apple''s implementation had another option "-xmangled".
Its usage could be found here:
http://blog.mozilla.com/dmandelin/2008/02/14/dtrace-c-mysteries-solved/
And it could be found in Apple''s man page:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/dtrace.1.html
Is it possible to have that
2006 Apr 06
0
NFSv3 and File operation scripts
Howdy,
I wrote a pair of scripts to measure file and NFSv3 operations, and
thought I would share them with the folks on the list. You can view
the script output by pointing your browser at the following URLs:
Per Process NFSv3 Client statistics (inspired by fsstat/nfsstat):
http://daemons.net/~matty/code/nfsclientstats.pl.txt
Per Process File Operations (inspired by fsstat):
2006 Dec 07
2
System hangs when invoking DTrace script
Howdy,
I installed Nevada build 49 in a parallels VM on my intel mac mini,
and when I run the following DTrace script:
$ cat follow.d
#pragma option D flowindent;
pid$target:::entry,
pid$target:::return
{}
$ cat format.cmds
disk
0
exit
$ dtrace -s follow.d -o follow.out -c "/usr/sbin/format -f format.cmds"
dtrace: script ''follow.d'' matched 13641 probes
The system
2009 Oct 22
0
Fwd: dtrace problem
> > From: vikram b
> > Date: October 22, 2009 12:31:53 AM PDT
> > To: dtrace-discuss at opensolaris.org
> > Subject: [dtrace-discuss] dtrace problem
> >
> > Hi All,
> > I am running dtrace on linux !! got it working some how.
> > dtrace -l shows a big list.. but many issues
> >
> > 1. says : failed to grab process
> >
2006 Sep 26
8
Matching Malloc and Free
I would like to profile heap usage on a per thread basis in a large application process. To do this I am tracking calls to malloc and free with the attached script. Everything seems to look OK with some simple test programmes, however, when I track the live system, the results suggest that one thread has grown by approximately 1Gb and I would be surprised if this was true because I ran pmap -x on
2008 Jun 09
6
FW: Memory Leak Problem in My Application running on Solaris 10.
Hi,
This is regarding Dtrace usability for memory leak detection.
We have real-time application written C++ which runs on Solaris 10
having a problem that''s the my application grows in size from 130 Mb
to 450Mb in around 15 days.
So there is two possibilities with the application growth of memory
due to Size growth of Dictionary Objects (Like Maps) and Memory Leak.
2005 Sep 28
4
A document about implementing dtrace probes in SAX
Hi,
I have mentioned before that we have added some sdt dtrace probes in SAX,
our APL interpreter. Encouraged by Angelo and Jignesh, I have created a
small document (5 pages) describing our experience with it, together with
some problems we have encountered and some scripts we use for
pretty-printing dtrace outputs.
The said document can be found at
2005 Oct 31
11
Aggregation elements
Howdy,
Is there a method to get the number of elements in an aggregation? Are the
results stored in an aggregation guaranteed to be in any type of order?
Thanks for any insight,
- Ryan
--
UNIX Administrator
http://daemons.net/~matty
2006 Aug 28
1
Problem linking USDT C++ application
I have inserted some probes in my application, and it works great in the "debug build" I have been using. So I wanted to look at the "overhead" introduced by inactive dtrace probes in my application. I am using the Sun Studio 11 compiler, so I added the following options:
-xO5 -g0 -xbuiltin
But this breaks the linking of my application.
Undefined first
2009 Feb 27
7
Memory usage for C++ Application is growing
Hi ,
I have c++ server application in solaries 10 . Day by day memory usage is growing
i try to find memory leaks with MDB and DTRACE and no leaks found. how can we find reason for growing memory , can we know which memory sigment is cause for growing memory usage
Thanks in Advance.
Rao
--
This message posted from opensolaris.org
2006 Mar 13
2
opensolaris dtrace page has bad link to dtrace documentation
The open solaris dtrace page (http://www.opensolaris.org/os/community/dtrace/) has a bad link to the DTrace Guide(http://docs.sun.com/db/doc/817-6223).
This message posted from opensolaris.org
2006 Mar 15
1
Can dtrace agent of JDK be used in IBM Websphere?(fwd)
------------------forwarded------------------------------------
This is to help my customer to migrate their IBM websphere 6.0.2 to run
on solaris 10 platform.
Customer is eager to use the dtrace agent of JDK
(https://solaris10-dtrace-vm-agents.dev.java.net/ ) to benefit their IBM
websphere server, I am not sure whether we can use this agent in IBM
websphere bundled JDK whose version is JDK
2007 Sep 26
2
TCP connections not getting cleaned up after application exits
Howdy,
We are running zones on a number of Solaris 10 update 3 hosts, and we
are bumping into an issue where the kernel doesn''t clean up
connections after an application exits. When this issue occurs, the
netstat utility doesn''t show anything listening on the port the
application uses (8080 in the example below), but connections are
still listed in the ESTABLISHED state:
$
2007 Apr 19
5
Available free memory.
Hi,
Can I use DTrace to determine memory status?
1.Total Physical Memory, Used Memory.
2.Total Swap Space and Used Swap Space.
I did find few DTrace scripts but had too much
in them and I am unable to chop off unwanted
lines of code due to lack of knowledge.
It will be very helpful if some one can share
the piece of code that serves my purpose as
mentioned above.
Regards,
Ramesh.
Ramesh
2006 Feb 10
4
Dtracing scsi
A small script to see what SCSI commands are being issued by a system:
http://blogs.sun.com/roller/page/chrisg?entry=scsi_d_script
Still work in progress as I needs to handle larger CDBs but it is a start, since I don''t have a disk that big it is not a problem for me yet.
Also getting the return scsi packet is a hack but so far I can see no alternative short of knowing about all the
2008 Sep 16
3
USDT probes in both static library and application
Hi All,
I''ve got a problem when I have USDT probes in a static library and in
the application code outside of the library.
I build the static library containing some USDT probes, glomming
everything together (ld -r) before creating the .a file to preserve the
probe symbols. This all works fine.
I build an application which also has some USDT probes.
When I build the application which
2006 Apr 28
1
Find no of incoming connections using dtrace
hi,
i want to find out the total number of incoming connections for a machine at any time using dtrace.anyone please suggest me the solution.
This message posted from opensolaris.org