我将Java EE应用程序部署到Openshift。它是从示例创建并修改的。我部署了应用程序并且工作正常,然后我更改了3个css文件,推送到Openshift,但从那时起应用程序没有运行。我尝试重启(有时告诉我无法重启,有时重启),但没有结果 - 应用程序显示空白页或503错误。可能有什么问题?在我的本地系统上,应用程序运行正常,使用MySQL DB。 MySQL在Openshif上运行,我可以连接到它。
URL: http://gympel.mojefotogalerie.com/
如何从Openshift下载一些日志文件来查看?或者在改变之前可能是什么原因(只有3个css文件发生了变化)一切顺利?
C:\ Users \ Marek> rhc tail gympel
==> app-root/logs/jbosseap.log <==
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=10
2m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTim
eRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=tru
e -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=tru
e -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel
-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http
11.Http11Protocol.COMPRESSION=on
=========================================================================
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=10
2m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTim
eRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=tru
e -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=tru
e -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel
-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http
11.Http11Protocol.COMPRESSION=on
=========================================================================
==> app-root/logs/mysql.log <==
140930 10:49:30 InnoDB: highest supported file format is Barracuda.
140930 10:49:30 InnoDB: Waiting for the background threads to start
140930 10:49:31 InnoDB: 5.5.37 started; log sequence number 1699425
140930 10:49:31 [Note] Server hostname (bind-address): '127.8.71.130'; port: 330
6
140930 10:49:31 [Note] - '127.8.71.130' resolves to '127.8.71.130';
140930 10:49:31 [Note] Server socket created on IP: '127.8.71.130'.
140930 10:49:31 [Warning] 'proxies_priv' entry '@ root@ex-std-node449.prod.rhclo
ud.com' ignored in --skip-name-resolve mode.
140930 10:49:31 [Note] Event Scheduler: Loaded 0 events
140930 10:49:31 [Note] /opt/rh/mysql55/root/usr/libexec/mysqld: ready for connec
tions.
Version: '5.5.37' socket: '/var/lib/openshift/542a6df0e0b8cdee1a00016b/mysql//s
ocket/mysql.sock' port: 3306 MySQL Community Server (GPL)
这是我的jbosseap.log文件的内容
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on
=========================================================================
2014/09/30 04:49:12,911 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.4.Final-redhat-1
2014/09/30 04:49:13,964 INFO [org.jboss.msc] (main) JBoss MSC version 1.1.5.Final-redhat-1
2014/09/30 04:49:14,194 INFO [org.jboss.as] (MSC service thread 1-8) JBAS015899: JBoss EAP 6.3.1.GA (AS 7.4.1.Final-redhat-3) starting
2014/09/30 04:49:17,554 WARN [org.jboss.as.messaging] (Controller Boot Thread) JBAS011608: Element CLUSTERED is deprecated and will not be taken into account
2014/09/30 04:49:18,407 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 14) JBAS014627: Attribute clustered is deprecated, and it might be removed in future version!
2014/09/30 04:49:18,457 WARN [org.jboss.messaging] (ServerService Thread Pool -- 14) JBAS011618: There is no resource matching the expiry-address jms.queue.ExpiryQueue for the address-settings #, expired messages from destinations matching this address-setting will be lost!
2014/09/30 04:49:18,461 WARN [org.jboss.messaging] (ServerService Thread Pool -- 14) JBAS011619: There is no resource matching the dead-letter-address jms.queue.DLQ for the address-settings #, undelivered messages from destinations matching this address-setting will be lost!
2014/09/30 04:49:18,551 INFO [org.xnio] (MSC service thread 1-2) XNIO Version 3.0.10.GA-redhat-1
2014/09/30 04:49:18,556 WARN [org.jboss.as.server] (Controller Boot Thread) JBAS015883: No security realm defined for native management service; all access will be unrestricted.
2014/09/30 04:49:18,600 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.0.10.GA-redhat-1
2014/09/30 04:49:18,605 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
2014/09/30 04:49:18,605 WARN [org.jboss.as.server] (Controller Boot Thread) JBAS015884: No security realm defined for http management service; all access will be unrestricted.
2014/09/30 04:49:18,688 INFO [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 3.3.3.Final-redhat-1
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on
=========================================================================
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on
=========================================================================
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on
=========================================================================
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on
=========================================================================
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on
=========================================================================
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on
=========================================================================
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on
=========================================================================
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /var/lib/openshift/542a6df0e0b8cdee1a00016b/jbosseap
JAVA: /etc/alternatives/java_sdk_1.6.0/bin/java
JAVA_OPTS: -server -XX:+TieredCompilation -Xms40m -Xmx256m -XX:MaxPermSize=102m -XX:+AggressiveOpts -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dorg.apache.tomcat.util.LOW_MEMORY=true -DOPENSHIFT_APP_UUID=542a6df0e0b8cdee1a00016b -Dorg.jboss.resolver.warning=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djboss.node.name=gympel-marek71cz.rhcloud.com -Djgroups.bind_addr=127.8.71.129 -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on
=========================================================================
最后我设法下载了服务器日志,我看到内存不足错误
2014/09/30 18:15:21,894 INFO [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for primary
2014/09/30 18:15:21,926 ERROR [stderr] (Thread-42 (HornetQ-scheduled-threads-4300596)) Exception in thread "Thread-42 (HornetQ-scheduled-threads-4300596)" java.lang.OutOfMemoryError: unable to create new native thread
2014/09/30 18:15:21,926 ERROR [stderr] (Thread-42 (HornetQ-scheduled-threads-4300596)) at java.lang.Thread.start0(Native Method)
2014/09/30 18:15:21,927 ERROR [stderr] (Thread-42 (HornetQ-scheduled-threads-4300596)) at java.lang.Thread.start(Thread.java:679)
2014/09/30 18:15:21,927 ERROR [stderr] (Thread-42 (HornetQ-scheduled-threads-4300596)) at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
2014/09/30 18:15:21,927 ERROR [stderr] (Thread-42 (HornetQ-scheduled-threads-4300596)) at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1018)
2014/09/30 18:15:21,927 ERROR [stderr] (Thread-42 (HornetQ-scheduled-threads-4300596)) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1164)
2014/09/30 18:15:21,927 ERROR [stderr] (Thread-42 (HornetQ-scheduled-threads-4300596)) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
2014/09/30 18:15:21,927 ERROR [stderr] (Thread-42 (HornetQ-scheduled-threads-4300596)) at java.lang.Thread.run(Thread.java:701)
感谢。
答案 0 :(得分:0)
如果你的内存不足,你需要使用更大的装备,你是在小型装备上运行吗? Java可以很快耗尽512MB的ram,特别是如果你在同一个齿轮上运行一个数据库,你也可以做一个缩放的应用程序并将数据库放在它自己的齿轮上,这可能有助于一些......