Add the learning notes

This commit is contained in:
luoyan35714 2014-12-05 14:34:10 +08:00
parent 903bc064a9
commit f47887aab4
32 changed files with 1638 additions and 2 deletions

View File

@ -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

View File

@ -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.

BIN
书籍/OPC教程.doc Normal file

Binary file not shown.

BIN
书籍/OPC的协议.pdf Normal file

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.

BIN
学习笔记/~WRL0005.tmp Normal file

Binary file not shown.

Binary file not shown.