为什么iftop没有显示组播IP的带宽,但tcpdump呢?(Why does iftop show no bandwidth from a multicast IP but tcpdump does? ffmpeg also cannot capture from the multicast)
当试图接收组播IP(来自239.193.140.11:1234的视频)时,我遇到了一个令人费解的问题。
当
$tcpdump dst 239.193.140.11 -w capturedData.pcap
,数据包被正确捕获。例如11:05:25.357138 IP 192.168.34.34.46192> 239.193.140.11.1234:UDP,长度1328
这意味着我的机器正在接收组播IP数据包。
但是,当
$iftop -i any
运行时,iftop不显示来自239.193.140.11的任何带宽。 此外,当我尝试使用ffmpeg捕获多播数据包时:$ffmpeg -i udp://239.193.140.11:1234?localaddr=192.168.34.34
,不捕获任何数据包。为什么tcpdump和iftop显示的内容之间存在差异,以及如何解决它,以便ffmpeg可以正确捕获?
I ran into a puzzling problem when trying to receive a multicast IP (of a video from 239.193.140.11:1234).
When
$tcpdump dst 239.193.140.11 -w capturedData.pcap
, the packets are captured correctly.eg, 11:05:25.357138 IP 192.168.34.34.46192 > 239.193.140.11.1234: UDP, length 1328
This means that my machine is receiving the multicast IP packets.
However, when
$iftop -i any
is run, iftop doesn't show any bandwidth from 239.193.140.11. Furthermore, when I try to capture the multicast packets with ffmpeg:$ffmpeg -i udp://239.193.140.11:1234?localaddr=192.168.34.34
, no packets are captured.Why is there a discrepancy between what tcpdump and iftop shows, and how to resolve it so that ffmpeg can capture correctly?
原文:https://stackoverflow.com/questions/48771108
最满意答案
有各种方法。 最简单的方法是终止当前连接池中的连接的数据库会话。 如果由于某种原因,您希望强制该错误持续发生,我想您可以修改 Oracle数据库用户的配置文件以设置
IDLE_TIME
(假设您的应用程序在连接池中保持连接以获得合理的一段的时间)。There are various approaches. The simplest would be to kill the database sessions for the connections that are currently in the connection pool. If, for some reason, you want to force that error to occur on an ongoing basis, I suppose that you could modify the profile for the Oracle database user to set an
IDLE_TIME
(assuming that your application maintains connections in the connection pool for a reasonable period of time).
相关问答
更多-
Oracle连接池类(Oracle Connection Pool Class)[2023-03-15]
您不应该直接使用ConnectionPoolDataSource 。 它旨在供应用程序服务器中的连接池使用。 它本身不提供连接池。 另请参见https://stackoverflow.com/a/12651163/466862 换句话说:您需要使用实际的连接池,如DBCP,c3p0或BoneCP,或UCP(通用连接池)。 You should not use a ConnectionPoolDataSource directly. It is intended for use by a connection ... -
你应该设置第二个数据库的凭证。 目前这两个数据库都使用相同的凭证。 尝试下面的第二个数据库: 为database.php 'pgsql2' => [ 'driver' => 'pgsql', 'host' => env('PS2_DB_HOST', 'localhost'), 'database' => env('PS2_DB_DATABASE', 'simkie_data'), 'username' => env('PS2_DB ...
-
我不能给你c ++代码,但我可以帮助你如何做到这一点。 在一个连接中很难做到这一点,但你可以得到一个可以工作的DataSet,而你只需要做一次代码。 创建一个方法将返回一个DataSet,并传递查询以及应该使用什么类型的连接,在此方法中,根据您执行查询的游览连接类型并返回结果。 如果愿意,您还可以添加连接字符串。 像这样的东西(虽然是c#) DataSet GetDataSet(string sqlQuery, ConnectionType connType) { DataS ...
-
与PHP的Oracle DB连接(Oracle DB connection with PHP)[2022-03-18]
为了使用oci8模块,除了启用php_oci8.dll之外,您还需要安装Oracle客户端。 您可以尝试使用Oracle 10gR2 Instant Client或Oracle 11gR2 Instant Client 从这里下载: http : //www.oracle.com/technetwork/topics/winsoft-085727.html 我建议使用10.2.0.5版本的Instant Client Package - Basic Lite In order to use oci8 mod ... -
有各种方法。 最简单的方法是终止当前连接池中的连接的数据库会话。 如果由于某种原因,您希望强制该错误持续发生,我想您可以修改 Oracle数据库用户的配置文件以设置IDLE_TIME (假设您的应用程序在连接池中保持连接以获得合理的一段的时间)。 There are various approaches. The simplest would be to kill the database sessions for the connections that are currently in the conn ...
-
当连接池中的连接不再主动连接到数据库时,将会出现“无效或失效连接”错误。 以下是导致这种情况的几种情况 由dba手动中止数据库连接。 例如,如果使用“ALTER SYSTEM KILL SESSION”来终止连接, 如果连接池中存在连接而没有使用很长时间,并且由于数据库实施的超时而断开连接(idle_time) 数据库重新启动 网络事件已导致连接中断,可能是因为网络已变得不可用或防火墙已断开连接,该连接已打开太久。 如果您设置了InactivityTimeout ,那么您必须确保它少于数据库强制实施的IDL ...
-
ORA-12705错误表明这可能是区域设置问题。 您可以尝试在转换为NLS时使用Oracle XE支持的语言环境启动JBoss。 例如,尝试将此添加到JBoss启动配置( jboss-as/bin/run.conf JAVA_OPTS变量): -Duser.language=en -Duser.country=US The ORA-12705 error suggests that this might be a locale issue. You could try starting up JBoss ...
-
我用JDBC完成了它。 我没有使用Oracle客户端。 I have done it with JDBC. I didn't use Oracle client.
-
ORACLE DB连接中的问题(issues in ORACLE DB connection)[2023-12-23]
您缺少类路径中的ojdbc6.jar 。 您可以添加到类路径中,如下所示 你可以从{ORACLE DRIVER INSTALL PATH}\jdbc\lib\ojdbc6.jar 然后, Go to Project properties (Project -> Properties) -> Java Build Path -> Libraries -> Add external JARs -> select ojdbc6.jar from your filesystem 顾名思义,Java中的Cla ... -
最新的IQDriver版本存在构建问题。 恢复到以前的版本(2.0.7),你不会看到这个错误。 作者删除了最新版本,因此您可以直接从LINQPad中执行此操作(添加连接|选择IQ |删除驱动程序|重新下载IQ驱动程序)。 There is a build issue in the newest IQDriver release. Revert to previous version (2.0.7) and you won't see that error. Author removed latest ver ...