Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/394.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Azure部署Java webapp_Java_Azure_Continuous Deployment - Fatal编程技术网

使用Azure部署Java webapp

使用Azure部署Java webapp,java,azure,continuous-deployment,Java,Azure,Continuous Deployment,我是Azure的新手。我部署了简单的webapp,一切正常。当我使用war文件(SpringMVC、hibernate)部署maven webapp时,我的应用程序服务编辑器中有这个日志 # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 212992 bytes for card table e

我是Azure的新手。我部署了简单的webapp,一切正常。当我使用war文件(SpringMVC、hibernate)部署maven webapp时,我的应用程序服务编辑器中有这个日志

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 212992 bytes for card table expansion
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
#   JVM is running with Unscaled Compressed Oops mode in which the Java heap is
#     placed in the first 4GB address space. The Java Heap base address is the
#     maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
#     to set the Java Heap base and to place the Java Heap above 4GB virtual address.
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_windows.cpp:3415), pid=8336, tid=0x0000000000004c6c
#
# JRE version: OpenJDK Runtime Environment () (8.0_202-b05) (build 1.8.0_202-b05)
# Java VM: OpenJDK 64-Bit Server VM (25.202-b05 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Failed to find MiniDumpWriteDump() in module dbghelp.dll
#

有时,Azure返回502页,或使用

The specified CGI application encountered an error and the server terminated the process.
Azure使用Windows机器,免费层F1,Java 8,Java容器:Tomcat


如何解决这个问题,tks

出于好奇,这是更新旧应用程序还是创建新应用程序?这是新的webapp:(然后,我强烈建议您摆脱战争;现在的建议是使用Boot制作可部署JAR已经有6年了。除了让生活更简单外,它还让调试部署变得更容易。Tks,我将使用Boot,但这个项目必须是war(老师的要求):((((您可能需要共享一个可以复制您的问题的样本,以便其他人可以进一步帮助您。