Skip to content

Instantly share code, notes, and snippets.

@yunazuno
Created December 17, 2014 14:54
Show Gist options
  • Save yunazuno/178273c1be06a3a5e21a to your computer and use it in GitHub Desktop.
Save yunazuno/178273c1be06a3a5e21a to your computer and use it in GitHub Desktop.
[testuser@HOSTNAME norikra]$ uname -a
Linux HOSTNAME 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[testuser@HOSTNAME norikra]$ cat /etc/redhat-release
CentOS release 6.5 (Final)
[testuser@HOSTNAME norikra]$ rbenv version
jruby-1.7.17 (set by RBENV_VERSION environment variable)
[testuser@HOSTNAME norikra]$ jruby --version
jruby 1.7.17 (1.9.3p392) 2014-12-09 fafd1a7 on OpenJDK 64-Bit Server VM 1.7.0_65-mockbuild_2014_07_16_06_06-b00 +jit [linux-amd64]
[testuser@HOSTNAME norikra]$ gem list
*** LOCAL GEMS ***
axiom-types (0.1.1)
backports (3.6.4)
celluloid (0.12.4)
childprocess (0.5.5)
choice (0.1.6)
coercible (1.0.0)
descendants_tracker (0.0.4)
equalizer (0.0.9)
erubis (2.7.0)
facter (2.3.0)
ffi (1.9.3 java)
hitimes (1.2.2 java)
httpclient (2.5.3.3)
ice_nine (0.11.1)
jar-dependencies (0.1.2)
jruby-launcher (1.1.1 java)
jruby-openssl (0.9.5 java)
json (1.8.0 java)
krypt (0.0.2)
krypt-core (0.0.2 universal-java)
krypt-provider-jdk (0.0.2)
ltsv (0.1.0)
maven-tools (1.0.7)
mizuno (0.6.8)
msgpack-jruby (1.3.2 java)
msgpack-rpc-over-http-jruby (0.0.7)
multi_json (1.10.1)
norikra (1.1.1 java)
norikra-client-jruby (1.1.0 java)
rack (1.5.2)
rack-protection (1.5.3)
rack-test (0.6.2)
rake (10.1.0)
rdoc (4.1.2)
ruby-maven (3.1.1.0.8)
ruby-maven-libs (3.1.1)
sinatra (1.4.5)
sinatra-contrib (1.4.2)
thor (0.19.1)
thread_safe (0.3.4 java)
tilt (1.4.1)
timers (4.0.1)
virtus (1.0.3)
[testuser@HOSTNAME norikra]$
===============================================================================
[testuser@HOSTNAME norikra]$ norikra start --more-verbose
2014-12-17 23:44:01 +0900 [INFO] : thread configurations, engine:{:inbound=>{:threads=>0, :capacity=>0}, :outbound=>{:threads=>0, :capacity=>0}, :route_exec=>{:threads=>0, :capacity=>0}, :timer_exec=>{:threads=>0, :capacity=>0}}, rpc:{:threads=>2}, web:{:threads=>2}
2014-12-17 23:44:01 +0900 [INFO] : logging configurations, level:"TRACE", dir:nil, filesize:nil, backups:nil, bufferlines:nil
2014-12-17 23:44:01 +0900 [WARN] : status file path (--stats) NOT specified
2014-12-17 23:44:01 +0900 [WARN] : TARGETS AND QUERIES WILL NOT BE SAVED ON SHUTDOWN !
2014-12-17 23:44:02 +0900 [DEBUG] : norikra engine starting: creating esper runtime
2014-12-17 23:44:02 +0900 [DEBUG] : norikra engine started
2014-12-17 23:44:02 +0900 [INFO] : Loading UDF plugins
2014-12-17 23:44:02 +0900 [INFO] : RPC server 0.0.0.0:26571, 2 threads
2014-12-17 23:44:02 +0900 [INFO] : WebUI server 0.0.0.0:26578, 2 threads
2014-12-17 23:44:02 +0900 [INFO] : Norikra server started.
2014-12-17 23:44:02 +0900 [WARN](Ruby-0-Thread-3: /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/gems/shared/gems/norikra-1.1.1-java/lib/norikra/rpc/http.rb:36)<org.eclipse.jetty.server.AbstractConnector> insufficient threads configured for [email protected]:26571
2014-12-17 23:44:02 +0900 [WARN](Ruby-0-Thread-4: /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/gems/shared/gems/norikra-1.1.1-java/lib/norikra/webui/http.rb:38)<org.eclipse.jetty.server.AbstractConnector> insufficient threads configured for [email protected]:26578
2014-12-17 23:44:02 +0900 [WARN] insufficient threads configured for [email protected]:26571
2014-12-17 23:44:02 +0900 [WARN] insufficient threads configured for [email protected]:26578
(別windowで `curl http://127.0.0.1:26571/` を実行してもレスポンス無し )
===============================================================================
[testuser@HOSTNAME ~]$ git clone https://github.com/norikra/norikra.git && cd norikra
[testuser@HOSTNAME norikra]$ diff -u junks/mizuno.rb.orig junks/mizuno.rb
--- junks/mizuno.rb.orig 2014-12-17 23:32:35.934271705 +0900
+++ junks/mizuno.rb 2014-12-17 23:33:23.765593280 +0900
@@ -12,7 +12,7 @@
mizuno = nil
server = Thread.new do
mizuno = Mizuno::Server.new
- mizuno.run(app, :embedded => true, :threads => 5, :port => 8080, :host => nil)
+ mizuno.run(app, :debug => true, :embedded => false, :threads => 5, :port => 8080, :host => nil)
end
pp 'success to start mizuno/server'
[testuser@HOSTNAME norikra]$ jruby junks/mizuno.rb
"starting server...."
"success to start mizuno/server"
Container org.eclipse.jetty.server.Server@1a2efa7c + qtp111249431{5<=0<=0/10,-1} as threadpool
Container org.eclipse.jetty.server.Server@1a2efa7c + [email protected]:8080 as connector
Container org.eclipse.jetty.server.Server@1a2efa7c + org.jruby.proxy.org.eclipse.jetty.server.handler.AbstractHandler$Proxy0@46f75fe as handler
starting org.eclipse.jetty.server.Server@1a2efa7c
starting org.eclipse.jetty.server.Server@1a2efa7c
jetty-8.1.15.v20140411
starting org.jruby.proxy.org.eclipse.jetty.server.handler.AbstractHandler$Proxy0@46f75fe
starting org.jruby.proxy.org.eclipse.jetty.server.handler.AbstractHandler$Proxy0@46f75fe
STARTED org.jruby.proxy.org.eclipse.jetty.server.handler.AbstractHandler$Proxy0@46f75fe
starting org.eclipse.jetty.server.Server@1a2efa7c
starting qtp111249431{5<=0<=0/10,-1}
STARTED qtp111249431{5<=4<=5/10,0}
starting [email protected]:8080
starting null/null
STARTED PooledBuffers [0/1024@6144,0/1024@16384,0/1024@-]/PooledBuffers [0/1024@6144,0/1024@32768,0/1024@-]
starting org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@1bcac9ea
STARTED org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@1bcac9ea
Starting Thread[qtp111249431-13 Selector0,5,main] on org.eclipse.jetty.io.nio.SelectorManager$1@1b3a49f2
Starting Thread[qtp111249431-16 Selector3,5,main] on org.eclipse.jetty.io.nio.SelectorManager$1@6ea80fb1
Starting Thread[qtp111249431-17 Selector4,5,main] on org.eclipse.jetty.io.nio.SelectorManager$1@5b9e6638
Starting Thread[qtp111249431-14 Selector1,5,main] on org.eclipse.jetty.io.nio.SelectorManager$1@fccbcd5
Starting Thread[qtp111249431-15 Selector2,5,main] on org.eclipse.jetty.io.nio.SelectorManager$1@4a814c0d
Starting Thread[qtp111249431-18 Selector5,5,main] on org.eclipse.jetty.io.nio.SelectorManager$1@6309acba
insufficient threads configured for [email protected]:8080
Started [email protected]:8080
STARTED [email protected]:8080
STARTED org.eclipse.jetty.server.Server@1a2efa7c
Mizuno 0.6.8 (Jetty 8.1.15.v20140411) listening on :8080
created SCEP@3f9e0d74{l(/127.0.0.1:48052)<->r(/127.0.0.1:8080),s=0,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=0}-{AsyncHttpConnection@21855b4d,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=0},r=0}
Timeout::Error: Timeout::Error
rbuf_fill at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/protocol.rb:146
readuntil at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/protocol.rb:122
readline at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/protocol.rb:132
read_status_line at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:2571
read_new at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:2560
transport_request at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:1328
catch at org/jruby/RubyKernel.java:1270
transport_request at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:1325
request at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:1302
request_get at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:1204
get_response at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:450
start at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:746
get_response at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:449
get at /home/testuser/.anyenv/envs/rbenv/versions/jruby-1.7.17/lib/ruby/1.9/net/http.rb:431
(root) at junks/mizuno.rb:21
[testuser@HOSTNAME norikra]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment