Weblogic 增加内存 [英] Weblogic increase memory

查看:48
本文介绍了Weblogic 增加内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何增加 Weblogic (Java) 使用的内存.当从 Eclipse 启动服务器时,它显示一条消息 JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=256m.我无法理解它从哪里获取这个价值.一段时间后,Weblogic 服务器由于 permgen 空间不足而出现故障.

How do I increase the memory used by my Weblogic (Java). While starting the server from eclipse it shows a message that JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=256m. I couldn't understand from where is it taking that value from. After sometime the Weblogic server fails because of low permgen space.

我从控制台添加了启动参数,但这没有任何效果.你能帮我从哪里获取内存值吗?

I added startup arguments from console but that doesn't have any effect. Can you help me from where is it taking the memory values from?

推荐答案

当您在 Eclipse 中为 WebLogic 配置服务器"时,您选择了一个域目录(用于本地).该域目录包含 Eclipse 将用于启动 WebLogic Server 的启动脚本.如果您在没有 Eclipse 的情况下启动服务器,您将使用这些脚本.在域目录中有一个名为bin"的文件夹.在bin"目录中,找到 setDomainEnv 文件(Unix 为 .sh,Windows 为 .cmd).在该文件中,更改内存设置以满足您的需要.

When you configure a "Server" in Eclipse for WebLogic, you select a domain directory (for local). That domain directory contains the startup scripts that Eclipse will use to start the WebLogic Server. These are the same scripts that you would use if you started the server if you did it without Eclipse. Inside the domain directory is a folder called "bin". In the "bin" directory, locate the setDomainEnv file (.sh for unix, or .cmd for Windows). In that file, alter the memory settings to suite your needs.

根据您在问题中提到的错误消息,我会将 PermSize 和 MaxPermSize 设置增加到 512m.对于 PermSize 和 MaxPermSize,在简单的 WLS 安装中,默认情况下各有两个位置,一个用于 32 位,另一个用于 64 位.改变他们两个不会有什么坏处.但是,如果您知道正在运行的 JVM 架构,则可以更改适用于您的环境的架构.

Based on the error message you mentioned in your question, I would increase both the PermSize and MaxPermSize settings to 512m. For PermSize and MaxPermSize, there are two locations each by default in a simple WLS installation, one for 32-bit, and another for 64-bit. It won't hurt to change them both. But if you know which JVM architecture you are running, you can change the one that applies to your environment.

这篇关于Weblogic 增加内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆