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

推荐订阅源

博客园 - 【当耐特】
Help Net Security
Help Net Security
P
Proofpoint News Feed
J
Java Code Geeks
爱范儿
爱范儿
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Full Disclosure
Google DeepMind News
Google DeepMind News
H
Help Net Security
G
Google Developers Blog
Jina AI
Jina AI
Vercel News
Vercel News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
Lohrmann on Cybersecurity
S
Schneier on Security
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Security Archives - TechRepublic
Security Archives - TechRepublic
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic
GbyAI
GbyAI
B
Blog
O
OpenAI News
博客园_首页
Cisco Talos Blog
Cisco Talos Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News: Ask HN
Hacker News: Ask HN
TaoSecurity Blog
TaoSecurity Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
M
MIT News - Artificial intelligence
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Simon Willison's Weblog
Simon Willison's Weblog
Y
Y Combinator Blog
C
Cisco Blogs
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
AI
AI
W
WeLiveSecurity
aimingoo的专栏
aimingoo的专栏
The Register - Security
The Register - Security
Project Zero
Project Zero
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale

博客园 - 畅想自由

为什么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. 记住,初始内存一定要小于系统可用的物理内存。