java - 使用 Azure 部署 Java webapp
问题描述
我是 Azure 的新手。我部署了简单的 webapp,一切正常。当我使用war文件(spring mvc,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 使用窗口机器、免费层 F1、Java 8、Java 容器:Tomcat
怎么解决这个问题,tks!!!
解决方案
推荐阅读
- oracle - 必须使用 SQL 加载器的控制文件避免所有记录多次出现
- javascript - 如何使用 ReactJS 在画布上绘制 Pin
- android - 具有多种视图类型的 Recyclerview?
- azure-functions - Azure Function Topic Trigger 是否可以触发多个订阅者?
- sql-server - 根据某些条件将表中的记录更新/插入到同一个表中
- pandas - 如何使用 Python pandas 处理数据整理问题中的 -inf 值
- grails - 使用 GORM 6.0.12 插入带有空值的属性
- reactjs - 酶 mount().find 没有找到任何东西
- android - 如何使用片段将 Firebase 数据填充到微调器中
- mysql - MySQL查询给工资低于平均工资的员工5%的奖金