2016-07-27 30 views
0

打開移應用停下來,型DIY的墨盒自動重新啓動,所以繼續停機時間我的應用程序,因爲我跑與PostgreSQL數據庫春季啓動應用程序,服務器將啓動,並且可以看到應用程序運行,但一段時間後,服務器關閉的原因,然後它會自動啓動,自動關機,我也看到在日誌目錄下只有很少的日誌日誌Openshift申請停止用型DIY的catridge automaticlally重啓

these are some logs for application----> 

RHC尾tiworld

==> app-root/logs/diy.log <== 
[2016-07-22 08:55:41] INFO WEBrick 1.3.1 
[2016-07-22 08:55:41] INFO ruby 1.8.7 (2013-06-27) [x86_64-linux] 
[2016-07-22 08:55:41] INFO WEBrick::HTTPServer#start: pid=380495 port=8080 
127.3.82.129 - - [22/Jul/2016:09:10:32 EDT] "HEAD/HTTP/1.1" 200 0 
- ->/
127.3.82.129 - - [22/Jul/2016:09:10:32 EDT] "HEAD/HTTP/1.1" 200 0 
- ->/
[2016-07-22 09:21:58] INFO going to shutdown ... 
[2016-07-22 09:21:58] INFO WEBrick::HTTPServer#start done. 


==> app-root/logs/postgresql.log <== 
2016-07-27 12:51:12 GMT LOG: could not bind socket for statistics collector: Cannot assign requested address 
2016-07-27 12:51:12 GMT LOG: disabling statistics collector for lack of working socket 
2016-07-27 12:51:12 GMT WARNING: autovacuum not started because of misconfiguration 
2016-07-27 12:51:12 GMT HINT: Enable the "track_counts" option. 
2016-07-27 12:51:12 GMT LOG: database system was interrupted; last known up at 2016-07-27 12:45:45 GMT 
2016-07-27 12:51:12 GMT FATAL: the database system is starting up 
2016-07-27 12:51:12 GMT LOG: database system was not properly shut down; automatic recovery in progress 
2016-07-27 12:51:12 GMT LOG: record with zero length at 0/198F218 
2016-07-27 12:51:12 GMT LOG: redo is not required 
2016-07-27 12:51:12 GMT LOG: database system is ready to accept connections 
You can tail this application directly with: 
ssh -t [email protected] 'tail */log*/*' 
/var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/ruby_compat.rb:30:in `select': closed stream (IOError) 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/ruby_compat.rb:30:in `io_select' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/transport/packet_stream.rb:75:in `available_for_read?' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/transport/packet_stream.rb:87:in `next_packet' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/transport/session.rb:183:in `block in poll_message' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/transport/session.rb:178:in `loop' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/transport/session.rb:178:in `poll_message' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:461:in `dispatch_incoming_packets' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:222:in `preprocess' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:206:in `process' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:170:in `block in loop' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:170:in `loop' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/connection/session.rb:170:in `loop' 
    from /var/lib/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/ssh_helpers.rb:198:in `block in ssh_ruby' 
    from /var/lib/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:215:in `start' 
    from /var/lib/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/ssh_helpers.rb:173:in `ssh_ruby' 
    from /var/lib/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands/tail.rb:40:in `tail' 
    from /var/lib/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands/tail.rb:21:in `run' 
    from /var/lib/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands.rb:294:in `execute' 
    from /var/lib/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands.rb:285:in `block (3 levels) in to_commander' 
    from /var/lib/gems/2.3.0/gems/commander-4.2.1/lib/commander/command.rb:180:in `call' 
    from /var/lib/gems/2.3.0/gems/commander-4.2.1/lib/commander/command.rb:155:in `run' 
    from /var/lib/gems/2.3.0/gems/commander-4.2.1/lib/commander/runner.rb:421:in `run_active_command' 
    from /var/lib/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/command_runner.rb:72:in `run!' 
    from /var/lib/gems/2.3.0/gems/commander-4.2.1/lib/commander/delegates.rb:8:in `run!' 
    from /var/lib/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/cli.rb:37:in `start' 
    from /var/lib/gems/2.3.0/gems/rhc-1.38.4/bin/rhc:20:in `<top (required)>' 
    from /usr/local/bin/rhc:23:in `load' 
    from /usr/local/bin/rhc:23:in `<main> 

回答

0

如果你是在一個小齒輪特別是如果你有Java的&在同一齒輪分貝運行此,變化是你耗盡資源和齒輪重新啓動(一段時間後,它不會自動重新啓動了)。 你可以看看這篇文章的詳細信息,檢查你的內存利用率:https://developers.openshift.com/faq/troubleshooting.html#_why_is_my_application_restarting_automatically_or_having_memory_issues

+0

是我出resourcess的,所以我怎麼能放postgress不同的齒輪和小齒輪訪問它,我不能升級我的計劃,我必須用小齒輪來做,我該怎麼辦?幫助 –

+0

您需要將其創建爲縮放應用程序(只要您有足夠的齒輪),它會自動將數據庫置於其自身的設備上。 – 2016-07-28 16:26:59

+0

我使用的免費試用期,我有3檔我可以擴展這三個齒輪,如果怎麼樣請給我最好的國土資源 –