Re: Incoming/Sent traffic data - Mailing list pgsql-jdbc

From Israel Ben Guilherme Fonseca
Subject Re: Incoming/Sent traffic data
Date
Msg-id BANLkTinxb30prV2J745U6aj_M2QMCnsR7w@mail.gmail.com
Whole thread Raw
In response to Re: Incoming/Sent traffic data  (Maciek Sakrejda <msakrejda@truviso.com>)
List pgsql-jdbc
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 <msakrejda@truviso.com>
>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

pgsql-jdbc by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Support for cert auth in JDBC
Next
From: Clemens Eisserer
Date:
Subject: How to diagnose application "hangs" in pg_receive?