POST
|
Hi Thorsten, I did some more tests, the problem is not in the number of json but in the number of TCP connections. If you open one connection tcp and sends thousand of json there are no problems. # here is another script which breaks down the Input.
# -*- coding: cp1252 -*-
import socket
import json
import time
#sending the message 1000 times on 1 socket
for i in range(1):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', 4199)) #
j = 0
n = 1000
while j < n:
print "send data.. " + str(i)
s.send(json.dumps({'sampleString': '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890' + str(i*10+j)}))
j = j + 1
javascript:;
s.shutdown(1)
s.close()
#time.sleep(1)
exit Opening multiple connections and behavior depends on the version of Windows server (web, standard enterprise, data center), you are using. The machine on Amazon on which I made the first tests, is a DataCenter and probably for this reason I was having problems because it supports a higher number of TCP connections. I redid the tests on a vm on my laptop with Windows 2008 R2 Standard and I had your problems. I tweaked tcp connections modify the Windows Registry with the details taken here (http://kb.globalscape.com/KnowledgebaseArticle10438.aspx) I put the tcp.reg file attached but you have to modify the GUI of your network cards. Also you should use ports below 5000 so up to 500 TCP connections not finding problems, clearly open other connections we return to the problem than before windows releases the tcp connection. # here is another script which breaks down the Input.
# -*- coding: cp1252 -*-
import socket
import json
import time
#sending the message 1500 times on 500 socket
for i in range(500):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', 4199)) #
j = 0
n = 3
while j < n:
print "send data.. " + str(i)
s.send(json.dumps({'sampleString': '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890' + str(i*10+j)}))
j = j + 1
s.shutdown(1)
s.close()
#time.sleep(1)
exit I hope this info can be helpful for you to find a workaround. ciao Gianluca
... View more
08-03-2015
03:43 PM
|
0
|
2
|
398
|
POST
|
- Which operating system are you testing on? Windows server 2008 R2 Service Pack 1 - What is the locale of your OS? Cloud Amazon - Are you sending to localhost or from another machine to your geoevent Service? I tested in both ways - Do you have any special configuration for geoevent extension? NO - Is there a patch for 10.3.1 which I didn't notice yet? NO I also tested the new script that you sent me and I can confirm that it works without problems Attached are the file export of input,export and service used.
... View more
07-30-2015
07:52 AM
|
0
|
0
|
893
|
POST
|
I tested on my machine in: genericjson / tcp Out: out-csv file remove the line time.sleep (0.1) and sent 10,000 json everything works without problems G.
... View more
07-29-2015
08:15 AM
|
0
|
4
|
893
|
POST
|
Hi for your information we use tcp / geomessages with peaks of more than 300 tracks per second without any problem. Windows: Server 2008 R2 Running: on Amazon cloud machine with 8GB RAM and 2 Cores ArcGIS: Versions 10.3.1 The tests are made using a machine for sending tracks and one for receiving the geoevent. The use of a single machine (sending and receiving) slows down performance by far. I hope this information will be useful for you. if you want I can test your file on my server. Ciao Gianluca
... View more
07-29-2015
05:42 AM
|
0
|
6
|
893
|
POST
|
Hi, you have to recompile because from version 10.2.x to version 10.3.x some classes has been renamed, G.
... View more
07-28-2015
02:43 PM
|
0
|
0
|
220
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|