惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
Attack and Defense Labs
Attack and Defense Labs
V2EX - 技术
V2EX - 技术
O
OpenAI News
S
Secure Thoughts
H
Heimdal Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Schneier on Security
Schneier on Security
H
Hacker News: Front Page
S
Security Affairs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
The Register - Security
The Register - Security
GbyAI
GbyAI
Cloudbric
Cloudbric
MongoDB | Blog
MongoDB | Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
Forbes - Security
Forbes - Security
Y
Y Combinator Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Scott Helme
Scott Helme
Hacker News - Newest:
Hacker News - Newest: "LLM"
The Cloudflare Blog
Recorded Future
Recorded Future
人人都是产品经理
人人都是产品经理
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
Webroot Blog
Webroot Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog
T
Tor Project blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
Hacker News: Ask HN
Hacker News: Ask HN
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
I
Intezer
V
V2EX
T
Tailwind CSS Blog
SecWiki News
SecWiki News
NISL@THU
NISL@THU
C
Check Point Blog

博客园 - 畅想自由

为什么19.9变成了19.89,不靠谱的 double 类型 HashTable Thinking in Java HTML已经过时了 编写高质量的.NET程序 - 开篇 Do not make joke with me 告别.NET 使用Replace方法时要注意的问题 - 畅想自由 - 博客园 最近在看的书 经济危机,让我们更加清醒 早上醒来,突然睡不着 IE和FireFox 对动态FORM enctype属性的认识问题 - 畅想自由 不再技术崇拜,精神开始焕发 Vs2003中Grid绑定强类型的问题 青春的岁月我们身不由己,只因着心中燃烧着梦想... 职业规划是什么? 做一个专业的IT管理人才必备的十大能力 Delphi的类与继承 Delphi 与 C#
Tomcat 部署问题记录
畅想自由 · 2009-12-28 · via 博客园 - 畅想自由

第一个JAVA WEB项目已经上线一段时间了,现把部署中的一些问题做个记录,希望能为遇到相同问题的其他朋友做个参考.

        1.Tomcat 在本地没有任何问题,但部署到服务器后却死活无法启动.

            查看Windows系统日志,几乎毫无帮助,尽是一些废话;Google了一哈,也毫无结果,因为日志里面的问题描述就不清楚.

            后来发现原来是没有设置JAVA虚拟机的路径, 狂晕...,赶快设置后,Tomcat正常启动. 要时刻记住,Tomcat是个JAVA程序,必须运行在虚拟机上。

            就像.NET程序,没有.NET FRAMEWORK,是无法运行的。

            启动,tomcat6w.exe , 配置虚拟机路径。 

            

        2.用户反映,在某些页面无法显示内容,甚至还会让浏览器死掉。查看错误日志,原来是Tomcat内存溢出。 

          异常描述:java.lang.OutOfMemoryError: Java heap space 。

          分析原因,是某些页面要加载由WORD转换成的HTML,由于WORD内容实在庞大,造成Tomcat内存溢出。

          解决如下:

                      启动,tomcat6w.exe (tomcat 提供的这个工具确实很方便,估计LINUX版本就没有这种工具了。)

                      配置tomcat的初始化内存和最大内存,默认这两项是没有设置的,但tomcat的初始内存还是有个默认值:128M。

                      

                     可以根据实际需要进行设置,这里我设置的是:512 和 1024. 记住,初始内存一定要小于系统可用的物理内存。