weblogic内存、调试端口 常用设置

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/asiaasia666/article/details/82529102

 

windows

 

setDomainEnv.cmd

set MEM_ARGS=-Xms768m -Xmx1024m -Xss2048k 

set MEM_PERM_SIZE=-XX:PermSize=256m

set MEM_MAX_PERM_SIZE=-XX:MaxPermSize=512m

startWebLogic.cmd

title 7001

rmdir /S/Q %DOMAIN_HOME%\servers\AdminServer\tmp

 

@REM added by mahh for eclipse remote debuge transport=dt_socket : 使用socket方式提供调试 address=17001: 调试端口为17001

set DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=17001,server=y,suspend=n

@REM end mahh

linux


lsof -i :7001

kill -9  `ps -ef | grep java | awk '{print $2}'`
LANG="zh_CN.GBK"
nohup /home/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/env_9107_160407151157/D_TEMPLATE/bin/startWebLogic.sh > /root/mahh/9107.log  & #MAIN

startWebLogic.sh

echo =========================================================mahh-begin=================================================================
echo rm -rf ${DOMAIN_HOME}/servers/AdminServer/tmp/
rm -rf ${DOMAIN_HOME}/servers/AdminServer/tmp/
echo =========================================================mahh-end===================================================================

USER_MEM_ARGS="-D64 -Xms8192m -Xmx8192m -XX:MaxNewSize=2048m -XX:MaxPermSize=512m -Dweblogic.threadpool.MinPoolSize=100 -Dweblogic.threadpool.MaxPoolSize=1000 -Djava.awt.headless=true -Dfile.encoding=GBK -Ddefault.client.encoding=GBK -Dsun.jnu.encoding=GBK "

-XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:CMSFullGCsBeforeCompaction=5 -XX:+PrintGC -Djava.awt.headless=true
 

展开阅读全文

weblogic内存总溢出

06-07

今天早上发现有个进程死掉了,一直找不到什么原因.昨天晚上把JVM的内存set到了1400左右,但今天早上发现用户登陆后,不到一小时就内存益处,一直找不到什么问题,求助rnrnrn[code=Java]####<2010-6-7 上午06时50分42秒 CST> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1275864642890> <[STUCK] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "633" seconds working on the request "weblogic.servlet.internal.ServletRequestImpl@14a19c0[rnGET /vfs2/body.html HTTP/1.1rnAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/QVOD, application/QVOD, */*rnReferer: https://vfs.saicfc.com/vfs2/login.htmrnAccept-Language: zh-cnrnCookie: JSESSIONID=SpDnMMjG02sGCXzhYVZc1b5kh1JhPWQQQLDLM2Q5zQ19FLvpSybn!-395770585rnAccept-Encoding: gzip, deflaternUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)rnCache-Control: no-cachernConnection: Keep-alivernVia: 1.1 AN-0003011046212250rn rn]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:rn java.net.SocketInputStream.socketRead0(Native Method)rn java.net.SocketInputStream.read(SocketInputStream.java:129)rn weblogic.jdbc.sqlserver.SQLServerByteOrderedDataReader.makeMoreDataAvailable(Unknown Source)rn weblogic.jdbc.sqlserver.SQLServerByteOrderedDataReader.receive(Unknown Source)rn weblogic.jdbc.sqlserver.tds.TDSRPCRequest.submitRequest(Unknown Source)rn weblogic.jdbc.sqlserver.tds.TDSRPCNonCursorExecuteRequest.submitPrepExec(Unknown Source)rn weblogic.jdbc.sqlserver.tds.TDSRPCExecuteRequest.doPrepExec(Unknown Source)rn weblogic.jdbc.sqlserver.tds.TDSRPCExecuteRequest.execute(Unknown Source)rn weblogic.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)rn weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)rn weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)rn weblogic.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source)rn weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:128)rn org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)rn org.hibernate.loader.Loader.getResultSet(Loader.java:1668)rn org.hibernate.loader.Loader.doQuery(Loader.java:662)rn org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)rn org.hibernate.loader.Loader.doList(Loader.java:2144)rn org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)rn org.hibernate.loader.Loader.list(Loader.java:2023)rn org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)rn org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)rn org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)rn org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)rn org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)rn com.newtouch.base.dao.hibernate.BaseDaoHibernate$5.doInHibernate(BaseDaoHibernate.java:418)rn org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:362)rn org.springframework.orm.hibernate3.HibernateTemplate.executeFind(HibernateTemplate.java:332)rn com.newtouch.base.dao.hibernate.BaseDaoHibernate.findByHql(BaseDaoHibernate.java:388)rn com.saicfc.BP.service.impl.BpInfoManagerImpl.getBpInfoByCustomerId(BpInfoManagerImpl.java:182)rn sun.reflect.GeneratedMethodAccessor948.invoke(Unknown Source)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:597)rn org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)rn org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:203)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)rn org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:209)rn $Proxy262.getBpInfoByCustomerId(Unknown Source)rn com.newtouch.admin.webapp.action.BodyController.handleRequest(BodyController.java:99)rn org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)rn org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:806)rn org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:736)rn org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)rn org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:707)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:820)rn weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)rn weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)rn weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)rn weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)rn weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn com.newtouch.webapp.filter.UserFilter.doFilter(UserFilter.java:62)rn weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)rn com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)rn weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn com.newtouch.webapp.filter.GZIPFilter.doFilterInternal(GZIPFilter.java:42)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rn weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)rn weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn com.newtouch.webapp.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:58)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rn weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:42)rn weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rn weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rn weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)rn weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)rn weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn weblogic.security.service.SecurityManager.runAs(Unknown Source)rn weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)rn weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)rn weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)rn weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)rn weblogic.work.ExecuteThread.run(ExecuteThread.java:173)rn> rnrn [/code] 论坛

weblogic 如何调试JSP?

07-15

大家好!rnrn我最近遇到一个weblogic 10.3 上的应用,JSP 编译错误 的问题!我们的web 应用基于 structs. 在winodws,rnsolaris, linux, hp 以及 aix上部署!现在只有AIX上有问题!rnrn我们这次是做了weblogic 10.3 的升级,同时JDK也升级到6.0(weblogic 10.3要求的)!rnrnrn报出的错:rnrn1. 我检查了我的WEB-INF 目录,发现提示缺少的文件都在!rn2. 我试过"tags/mdreport.tld" 或者直接换成http://struts.apache.org/tags-bean/rnstruts-bean.tld 之类的,也是报同样的错!rn3. 这个问题我已经搞了快一周了,还是没有结果!本人之前没有接触过 structs, 请问用什么方法可以调试我的jSP?或者应该从哪里着手解rn决问题啊?谢谢!rnrnlogon.jsp:2:5: Invalid tag library.rn<%@ taglib uri="/WEB-INF/mdreport.tld" prefix="md" %>rn ^----^rnlogon.jsp:2:5: No tag library could be found with this URI. Possiblerncauses could be that the URI is incorrect, or that there were errorsrnduring parsing of the .tld file.rn<%@ taglib uri="/WEB-INF/mdreport.tld" prefix="md" %>rn ^----^rnlogon.jsp:2:5: Invalid tag library.rn<%@ taglib uri="/WEB-INF/mdreport.tld" prefix="md" %>rn ^----^rnlogon.jsp:2:5: No tag library could be found with this URI. Possiblerncauses could be that the URI is incorrect, or that there were errorsrnduring parsing of the .tld file.rn<%@ taglib uri="/WEB-INF/mdreport.tld" prefix="md" %>rn ^----^rnlogon.jsp:3:5: Invalid tag library.rn<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>rn ^----^rnlogon.jsp:3:5: No tag library could be found with this URI. Possiblerncauses could be that the URI is incorrect, or that there were errorsrnduring parsing of the .tld file.rn<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>rn ^----^rnlogon.jsp:3:5: Invalid tag library.rn<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>rn ^----^rnlogon.jsp:3:5: No tag library could be found with this URI. Possiblerncauses could be that the URI is incorrect, or that there were errorsrnduring parsing of the .tld file.rn<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>rn ^----^rn。。。 论坛

没有更多推荐了,返回首页