Message-Id: <200102221535.KAA10136@picard.cs.ohiou.edu> From: "Shawn Ostermann" <ostermann@cs.ohiou.edu> Subject: Re: problem of memory with tcptrace Date: Thu, 22 Feb 2001 10:35:42 -0500
> I want to used tcptrace to analyse traffic of a web server
> I have made trace with tcpdump,
> the binaries have been zipped on the fly
> the size of the zipped binaries are between 700 Mo and 1,6Go
> but they seems to be to big because when i launch tcptrace , the error
> "Ressource temporaly unavailable"
> accurs.
> I used a Sun ultrasparc2 with solaris2.6 an 1Go of ram
>
> Do you know a solution to compute my files whitout cut them in small part
>
> sorry if my question is stupid
>
> jerome :)
It's not a stupid question at all. It isn't really a tcptrace error,
it's coming from the operating system. You don't give quite enough
information to know for sure, but I suspect that it's a memory
allocation problem. You can get that from malloc(), although I'm a
little confused because we have a malloc wrapper that traps this error
and tries to explain it a little. Perhaps you're seeing that and
didn't mention it. In any case, if that's the problem, then you're
out of swap space (but may or may not be out of physical memory). A
quick way to verify this is to run 'top' (freely available) and watch
the amount of available swap space as the program runs, if it goes to
0 right before the program exits, that's your problem. Adding
temporary swap space on a solaris machine (and most others) is fairly
simple. You would use a combination of mkfile(1M) to make a large
file to swap into (maybe 1GB) and then swap(1M) to add that new file
to the list of swap space. This is a little slower than a real swap
partition, but much less work. Note that this requires root access.
If I'm way off base here, please write back with some more details.
I'd specifically like to see the output of:
truss -oTRUSSFILE tcptrace -args file...
then the file 'TRUSSFILE' will show which system call is failing and
why. For those of you not on Solaris, a truss-like program can
probably be found as 'strace', 'ptrace', or sometimes just 'trace'.
--sdo
----------------------------------------------------------------------------
To unsubscribe, send a message with body containing "unsubscribe tcptrace" to
majordomo@tcptrace.org.
This archive was generated by hypermail 2b30 : 02/22/01 EST