Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 719D8B5DBD4 for ; Thu, 19 May 2011 08:46:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 93946-05 for ; Thu, 19 May 2011 11:46:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id B2496B5D801 for ; Thu, 19 May 2011 08:46:08 -0300 (ADT) Received: by vws1 with SMTP id 1so1836146vws.19 for ; Thu, 19 May 2011 04:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=DBb+1lktVLovbjoexAw8Z9DypVD2ljIpEiLgPqdTIdE=; b=S/txCzFrR4/cQ4pbupmMR37O8+xJDJ9/e5CDaEq73g9nQWtQRZ1mDXL59eEKDB9vI+ BHtXTVnOM0ePHtEgJWDafYTa6lBKNgjihjcTtf4vvtKeQu84Fj4w9f5Fru+HZiKGV/Dr +3DYg13pAd5aZFztZTO2VYY7Pfn2AF7KHHcQE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fgWAppdXt3T8bKa4jRhB3+rkxamLG4sAMWaej0yU48hlUSEowJhg4qG6vkf6KdzEz/ IZgyi22scRsq/HbUYAPFpaA2EvBV02G9POJ9QtAsB7ks3vTlUMYCebPPvSrCmRB67soL WQ1rDXgYP2U0KNsi9vi5OsyQxtfcG77sOtfX8= MIME-Version: 1.0 Received: by 10.52.180.72 with SMTP id dm8mr1395663vdc.118.1305805568562; Thu, 19 May 2011 04:46:08 -0700 (PDT) Received: by 10.52.157.195 with HTTP; Thu, 19 May 2011 04:46:08 -0700 (PDT) In-Reply-To: References: <4DCD13A7020000250003D6C6@gw.wicourts.gov> <4DCD1BB4020000250003D6CD@gw.wicourts.gov> Date: Thu, 19 May 2011 08:46:08 -0300 Message-ID: Subject: Re: Incoming/Sent traffic data From: Israel Ben Guilherme Fonseca To: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=bcaec51a7d4c0f54e104a39f8db6 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.887 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201105/61 X-Sequence-Number: 21891 --bcaec51a7d4c0f54e104a39f8db6 Content-Type: text/plain; charset=ISO-8859-1 I implemented a language agnostic way of testing these traffic issues with tshark and packets generation time. Thanks for all the help. -- So, for the time there's no way of compressing the traffic, right? 2011/5/15 Maciek Sakrejda > >Macieck -> > >A much more portable solution indeed. > > Sure, but there's trade-offs--you have to reinvent the wheel (or find > existing reimplementations of the different pieces of the wheel). > > >Macieck, another question about the wireshark. > > Is there any way to control it from a java code? > > You don't want to control a GUI program from another program if you > can help it. Wireshark relies on libpcap, a library for listening to > (and interpreting) network traffic. Jpcap [1] is a Java wrapper for > libpcap. You *should* be able to do everything you need through Jpcap. > It doesn't understand the PostgreSQL wire protocol like Wireshark > does, but if you need to do that, it might be easier to write your own > wrapper rather than try to control Wireshark programmatically. > > [1]: http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/ > > Thanks, > --- > Maciek Sakrejda | System Architect | Truviso > > 1065 E. Hillsdale Blvd., Suite 215 > Foster City, CA 94404 > (650) 242-3500 Main > www.truviso.com > --bcaec51a7d4c0f54e104a39f8db6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I implemented a language agnostic way of testing these traffic issues with = tshark and packets generation time. Thanks for all the help.

--
<= br>So, for the time there's no way of compressing the traffic, right?
2011/5/15 Maciek Sakrejda = <msakrejda@truviso.com><= /span>
>Macieck ->
>A much more portable solution indeed.

Sure, but there's trade-offs--you have to reinvent the wheel (or = find
existing reimplementations of the different pieces of the wheel).

>Macieck, another question about the wireshark.
> Is there any way to control it from a java code?

You don't want to control a GUI program from another program if y= ou
can help it. Wireshark relies on libpcap, a library for listening to
(and interpreting) network traffic. Jpcap [1] is a Java wrapper for
libpcap. You *should* be able to do everything you need through Jpcap.
It doesn't understand the PostgreSQL wire protocol like Wireshark
does, but if you need to do that, it might be easier to write your own
wrapper rather than try to control Wireshark programmatically.

[1]: http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/

Thanks,
---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com

--bcaec51a7d4c0f54e104a39f8db6--