mirror of
https://github.com/luoyan35714/OPC_Client.git
synced 2026-04-18 00:01:30 +08:00
Add the learning notes
This commit is contained in:
+4
-2
@@ -8,6 +8,7 @@ import java.util.concurrent.Executors;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.openscada.opc.lib.da.AccessBase;
|
||||
import org.openscada.opc.lib.da.Async20Access;
|
||||
import org.openscada.opc.lib.da.AutoReconnectController;
|
||||
import org.openscada.opc.lib.da.DataCallback;
|
||||
import org.openscada.opc.lib.da.Item;
|
||||
import org.openscada.opc.lib.da.ItemState;
|
||||
@@ -34,8 +35,9 @@ public class PublishOPCPerfTest {
|
||||
|
||||
Server server = new Server(config(),
|
||||
Executors.newSingleThreadScheduledExecutor());
|
||||
AutoReconnectController controller = new AutoReconnectController(server);
|
||||
|
||||
server.connect();
|
||||
controller.connect();
|
||||
|
||||
AccessBase access = new Async20Access(server, 1000, true);
|
||||
|
||||
@@ -51,7 +53,7 @@ public class PublishOPCPerfTest {
|
||||
}
|
||||
|
||||
access.bind();
|
||||
Thread.sleep(1000);
|
||||
Thread.sleep(2 * 24 * 60 * 60 * 1000);
|
||||
access.unbind();
|
||||
long end = System.currentTimeMillis();
|
||||
LOGGER.info("EndDate[" + new Date() + "],CurrentMillis:" + end);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,3 +4,17 @@ OPC_Client
|
||||
OPC client examples include [utgard](http://openscada.org/projects/utgard/) and [jeasyopc](http://sourceforge.net/projects/jeasyopc/?source=navbar)
|
||||
|
||||
Also for the real produce environment, there's two example for <b>performance</b> test.
|
||||
|
||||
<h2>Next Step</h2>
|
||||
<ul>
|
||||
<li>继续压力测试</li>
|
||||
<li>10W点下异步的时间</li>
|
||||
<li>异步下多少线程数是最好的</li>
|
||||
<li>发布订阅实现读取</li>
|
||||
<li>场景选择</li>
|
||||
<li>监测点与场景及thread数目选择问题</li>
|
||||
</ul>
|
||||
|
||||
<h2>现在依然存在的问题</h2>
|
||||
1. 发布订阅的实现
|
||||
2. 异步的源码实现
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user