Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Another problem came up.

    Lightstreamer starts fine but it no longer opens a listening port on 8080 (http).

    Here is the startup:

    [/usr/Lightstreamer/bin/unix-like]>./start.sh
    Java environment:
    JAVA_HOME = "/usr/local/openjdk8"
    JAVA_OPTS = "-server -XX:MaxGCPauseMillis=1000"

    Setting file descriptor limit to 117270
    Configured file descriptors, soft limit: 117270
    Configured file descriptors, hard limit: 117270

    Lightstreamer Server directory:
    LS_HOME = "/usr/Lightstreamer"

    Lightstreamer Server main configuration file:
    LS_CONFIG = "/usr/Lightstreamer/conf/lightstreamer_conf.xml"

    Starting Lightstreamer Server...
    Please check logs for detailed information.
    16.Sep.15 14:26:21,776 < INFO> Lightstreamer Server 6.0.1 build 1780
    16.Sep.15 14:26:21,819 < INFO> Lightstreamer Server starting in Moderato edition.
    16.Sep.15 14:26:21,907 < WARN> Only minimal JMX management support is available with the current license.
    16.Sep.15 14:26:21,957 < INFO> Started RMI server for JMX on port 8888.
    16.Sep.15 14:26:22,114 < INFO> Bound RMI Connector for JMX on port 8888 (communication on port 8888).
    16.Sep.15 14:26:22,178 < INFO> Bound RMI Connector for Platform mbeans on port 8888 (communication on port 8888).
    16.Sep.15 14:26:22,191 < INFO> SERVER pool size set by default at 10.
    16.Sep.15 14:26:22,308 < INFO> Pump pool size set by default at 4.
    16.Sep.15 14:26:22,397 < INFO> data_provider element without name attribute; using DEFAULT as the default name.
    16.Sep.15 14:26:22,400 < INFO> data_provider element without name attribute; using DEFAULT as the default name.
    16.Sep.15 14:26:22,404 < INFO> Loading Metadata Adapter for Adapter Set WELCOME
    16.Sep.15 14:26:22,404 < INFO> Loading Metadata Adapter for Adapter Set PROXY_HELLOWORLD_SOCKETS
    16.Sep.15 14:26:22,404 < INFO> Loading Metadata Adapter for Adapter Set MARKETDEPTH
    16.Sep.15 14:26:22,417 < INFO> Finished loading Metadata Adapter for Adapter Set PROXY_HELLOWORLD_SOCKETS
    16.Sep.15 14:26:22,419 < INFO> Loading Data Adapter PROXY_HELLOWORLD_SOCKETS.DEFAULT
    16.Sep.15 14:26:22,435 < INFO> Connecting...
    16.Sep.15 14:26:22,452 < INFO> Waiting for a connection on port 7001...
    16.Sep.15 14:26:22,452 < INFO> Waiting for a connection on port 7002...
    16.Sep.15 14:26:22,497 <DEBUG> Rnd generator time (1): 70
    16.Sep.15 14:26:22,498 <DEBUG> Rnd generator time (2):700
    16.Sep.15 14:26:22,498 <DEBUG> Rnd generator time (3): 35000
    16.Sep.15 14:26:22,498 <DEBUG> Rnd generator time (4): 25000
    16.Sep.15 14:26:22,498 < INFO> MarketDepth Demo Metadata Adapter start.
    16.Sep.15 14:26:22,498 < INFO> Finished loading Metadata Adapter for Adapter Set MARKETDEPTH
    16.Sep.15 14:26:22,500 < INFO> Loading Data Adapter MARKETDEPTH.DEFAULT
    16.Sep.15 14:26:22,506 < INFO> Stock SuperFast Tech. reference price: 25.69
    16.Sep.15 14:26:22,509 <DEBUG> New initial buy order - 20.12 x 1102
    16.Sep.15 14:26:22,509 <DEBUG> New initial buy order - 24.65 x 77022
    16.Sep.15 14:26:22,510 <DEBUG> New initial buy order - 24.77 x 83395
    16.Sep.15 14:26:22,510 <DEBUG> New initial buy order - 22.75 x 97786
    16.Sep.15 14:26:22,511 <DEBUG> New initial buy order - 22.37 x 38615
    16.Sep.15 14:26:22,511 <DEBUG> New initial sell order - 31.12 x 73383
    16.Sep.15 14:26:22,511 <DEBUG> New initial sell order - 29.72 x 70509
    16.Sep.15 14:26:22,511 <DEBUG> New initial sell order - 27.02 x 68650
    16.Sep.15 14:26:22,512 <DEBUG> New initial sell order - 27.48 x 28340
    16.Sep.15 14:26:22,512 <DEBUG> New initial sell order - 31.78 x 92038
    16.Sep.15 14:26:22,512 <DEBUG> New initial sell order - 26.56 x 90676
    16.Sep.15 14:26:22,512 <DEBUG> New initial sell order - 31.79 x 72579
    16.Sep.15 14:26:22,512 <DEBUG> New initial sell order - 28.05 x 1043
    16.Sep.15 14:26:22,512 < INFO> Stock AXY COMPANY Ltd reference price: 43.14
    16.Sep.15 14:26:22,513 <DEBUG> New initial buy order - 39.92 x 70082
    16.Sep.15 14:26:22,513 <DEBUG> New initial buy order - 41.55 x 37181
    16.Sep.15 14:26:22,513 <DEBUG> New initial buy order - 37.69 x 21685
    16.Sep.15 14:26:22,514 <DEBUG> New initial buy order - 36.44 x 86768
    16.Sep.15 14:26:22,514 <DEBUG> New initial buy order - 40.69 x 2288
    16.Sep.15 14:26:22,514 <DEBUG> New initial buy order - 32.82 x 9149
    16.Sep.15 14:26:22,514 <DEBUG> New initial buy order - 38.48 x 78115
    16.Sep.15 14:26:22,514 <DEBUG> New initial buy order - 40.91 x 51964
    16.Sep.15 14:26:22,514 <DEBUG> New initial buy order - 33.64 x 87564
    16.Sep.15 14:26:22,515 <DEBUG> New initial buy order - 35.43 x 51929
    16.Sep.15 14:26:22,515 <DEBUG> New initial sell order - 48.76 x 13466
    16.Sep.15 14:26:22,515 <DEBUG> New initial sell order - 49.67 x 6001
    16.Sep.15 14:26:22,515 <DEBUG> New initial sell order - 50.71 x 86734
    16.Sep.15 14:26:22,515 <DEBUG> New initial sell order - 53.03 x 16726
    16.Sep.15 14:26:22,515 <DEBUG> New initial sell order - 53.29 x 18806
    16.Sep.15 14:26:22,516 <DEBUG> New initial sell order - 51.56 x 76892
    16.Sep.15 14:26:22,516 <DEBUG> New initial sell order - 52.42 x 96534
    16.Sep.15 14:26:22,517 <DEBUG> New initial sell order - 50.23 x 14519
    16.Sep.15 14:26:22,517 <DEBUG> New initial sell order - 46.37 x 57472
    16.Sep.15 14:26:22,517 <DEBUG> New initial sell order - 50.84 x 71511
    16.Sep.15 14:26:22,517 < INFO> Stock BTTQ Industries Sa reference price: 44.43
    16.Sep.15 14:26:22,518 <DEBUG> New initial buy order - 36.44 x 12935
    16.Sep.15 14:26:22,518 <DEBUG> New initial buy order - 43.04 x 85248
    16.Sep.15 14:26:22,518 <DEBUG> New initial buy order - 35.6 x 19424
    16.Sep.15 14:26:22,518 <DEBUG> New initial buy order - 37.33 x 35533
    16.Sep.15 14:26:22,518 <DEBUG> New initial sell order - 52.9 x 55175
    16.Sep.15 14:26:22,518 <DEBUG> New initial sell order - 53.07 x 69726
    16.Sep.15 14:26:22,518 <DEBUG> New initial sell order - 50.92 x 30783
    16.Sep.15 14:26:22,519 < INFO> Stock Old&Slow Company ... reference price: 48.1
    16.Sep.15 14:26:22,519 <DEBUG> New initial buy order - 44.01 x 44187
    16.Sep.15 14:26:22,519 <DEBUG> New initial buy order - 45.23 x 43643
    16.Sep.15 14:26:22,519 <DEBUG> New initial buy order - 38.93 x 43995
    16.Sep.15 14:26:22,519 <DEBUG> New initial buy order - 45.95 x 31931
    16.Sep.15 14:26:22,519 <DEBUG> New initial buy order - 43.79 x 85519
    16.Sep.15 14:26:22,519 <DEBUG> New initial sell order - 54.05 x 97436
    16.Sep.15 14:26:22,520 <DEBUG> New initial sell order - 57.46 x 5816
    16.Sep.15 14:26:22,520 <DEBUG> New initial sell order - 54.81 x 64398
    16.Sep.15 14:26:22,520 <DEBUG> New initial sell order - 56.51 x 44199
    16.Sep.15 14:26:22,520 <DEBUG> New initial sell order - 53.54 x 71399
    16.Sep.15 14:26:22,520 <DEBUG> New initial sell order - 58.11 x 61163
    16.Sep.15 14:26:22,520 <DEBUG> New initial sell order - 52.94 x 23606
    16.Sep.15 14:26:22,521 < INFO> MarketDepth Demo Data Adapter start.
    16.Sep.15 14:26:22,521 < INFO> Finished loading Data Adapter MARKETDEPTH.DEFAULT
    16.Sep.15 14:26:22,635 < INFO> Finished loading Metadata Adapter for Adapter Set WELCOME
    16.Sep.15 14:26:22,639 < INFO> Loading Data Adapter WELCOME.TELEMETRY
    16.Sep.15 14:26:22,639 < INFO> Loading Data Adapter WELCOME.CHAT
    16.Sep.15 14:26:22,639 < INFO> Loading Data Adapter WELCOME.STOCKS
    16.Sep.15 14:26:22,639 < INFO> Loading Data Adapter WELCOME.ROOMBALL
    16.Sep.15 14:26:22,643 < INFO> WebTelemetryF1 Pronto
    16.Sep.15 14:26:22,644 < INFO> Finished loading Data Adapter WELCOME.TELEMETRY
    16.Sep.15 14:26:22,648 < INFO> Finished loading Data Adapter WELCOME.ROOMBALL
    16.Sep.15 14:26:22,649 < INFO> StockQuotesDataAdapter ready.
    16.Sep.15 14:26:22,649 < INFO> Finished loading Data Adapter WELCOME.STOCKS
    16.Sep.15 14:26:22,650 < INFO> ChatDataAdapter ready
    16.Sep.15 14:26:22,650 < INFO> Finished loading Data Adapter WELCOME.CHAT


    Netstat -an | grep LIST

    tcp46 0 0 *.7001 *.* LISTEN
    tcp46 0 0 *.7002 *.* LISTEN
    tcp46 0 0 *.8888 *.* LISTEN

    I haven't touched any of the conf files (i.e - lightstreamer_conf.xml)

    I can open connections to the proxy adapter ports (telnet) but no access to index.html on /pages.


    If I remove the proxy adapter, http comes up fine.

    [snip]

    16.Sep.15 14:31:43,294 < INFO> Lightstreamer Server on Java Virtual Machine: Oracle Corporation, OpenJDK 64-Bit Server VM, 25.45-b02, 1.8.0_45-b14 on FreeBSD
    16.Sep.15 14:31:43,294 < INFO> Lightstreamer Server 6.0.1 build 1780 starting...
    16.Sep.15 14:31:43,362 < INFO> Server "Lightstreamer HTTP Server" listening to *:8080 ...


    What am I stilldoing wrong?

  2. #12
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Mario,

    There exist two flavors of Proxy Data Adapter: NetworkedDataProvider and RobustNetworkedDataProvider.
    In your case you are using the first one that explicitly provides not to start listening on the server TCP port until both the request_reply_port and notify_port (7001, 7002) are connected.

    You can switch to RobustNetworkedDataProvider that allows the server to start even before the Remote Adapter has connected.

    Code:
    <adapter_class>ROBUST_PROXY_FOR_REMOTE_ADAPTER</adapter_class>
    Furthermore, the RobustNetworkedDataProvider contains some recovery capabilities and avoid to terminate the Lightstreamer Server process. Full details on the recovery behavior are available as inline comments within the example adapters.xml file available in the “Lightstreamer/DOCS-SDKs/adapter_remoting_infrastructure/doc/adapter_robust_conf_template” folder.

    Regards,
    Giuseppe

  3. #13
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Mario,

    You should consider that the Moderato Edition does not allow clustering. So, since you do not need more that one server, the Moderato edition handles the load exactly as "Allegro/Presto/Vivace" editions could do.
    But you have to consider if your application needs additional features that are not included in the Moderato, such as an higher Items update frequency, additional client libraries other than JavaScript, direct email support, etc ... .
    For a complete list of features available in the various editions please refer here.

    Regards,
    Giuseppe

  4. #14
    Again, it worked! Thanks Giuseppe.

    As for the Moderato issue, I'll have to start testing and see how it behaves under load. What could worry me would be the higher Items update frequency, because we will be using JavaScript client lib.

    As you can attest, I'll post my findings or hiccups.

    Best wishes,
    Mario

 

 

Similar Threads

  1. Using the direct network protocol?
    By Alessandro in forum Client SDKs
    Replies: 2
    Last Post: July 19th, 2010, 10:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:31 AM.