开发者社区> 问答> 正文

Apache分发问题请教?报错

系统环境:

apache2.2.22+weblogic9.2 全在Win 2008上


最近系统出现个问题,访问Weblogic单节点系统不会出错,只有访问Apache分发地址才会报错。
通过打开debug日志,发现下面的报错:
================New Request: [POST /grm/ecp/RemoteServiceServlet?callName=com.ygsoft.ecp.component.contentmanage.service.context.ISysParamSetContext.findControlParams HTTP/1.1] =================
Tue Aug 25 14:46:02 2015 <214761440485162146940> INFO: SSL is not configured
Tue Aug 25 14:46:02 2015 <214761440485162146940> Using Uri /grm/ecp/RemoteServiceServlet
Tue Aug 25 14:46:02 2015 <214761440485162146940> After trimming path: '/grm/ecp/RemoteServiceServlet'
Tue Aug 25 14:46:02 2015 <214761440485162146940> The final request string is '/grm/ecp/RemoteServiceServlet?callName=com.ygsoft.ecp.component.contentmanage.service.context.ISysParamSetContext.findControlParams'
Tue Aug 25 14:46:02 2015 <214761440485162146940> SEARCHING id=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008] from current ID=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008]
Tue Aug 25 14:46:02 2015 <214761440485162146940> SEARCHING id=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008] from current ID=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008]
Tue Aug 25 14:46:02 2015 <214761440485162146940> The two ids matched
Tue Aug 25 14:46:02 2015 <214761440485162146940> @@@FOUND...id=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008], server_name=[10.126.29.93], server_port=[9080]
Tue Aug 25 14:46:02 2015 <214761440485162146940> getPreferred: availcookie=[lastLoginUserName=ISENCRYSTRING051E2DEFA2572680AF1748D259C39810; JSESSIONID=jkS4VcTJWM5BLhwtGrBK5BJbLrhf4QTQBqh92GsDXj1yjvJHWzPj!-218849767; ecpDataContext.tokenId=12fdd2400f4d41d6b2c1c042d9faf8ec]
Tue Aug 25 14:46:02 2015 <214761440485162146940> Found cookie from cookie header: JSESSIONID=jkS4VcTJWM5BLhwtGrBK5BJbLrhf4QTQBqh92GsDXj1yjvJHWzPj!-218849767
Tue Aug 25 14:46:02 2015 <214761440485162146940> Parsing cookie JSESSIONID=jkS4VcTJWM5BLhwtGrBK5BJbLrhf4QTQBqh92GsDXj1yjvJHWzPj!-218849767
Tue Aug 25 14:46:02 2015 <214761440485162146940> getpreferredServersFromCookie: [-218849767]
Tue Aug 25 14:46:02 2015 <214761440485162146940> primaryJVMID: [-218849767]
secondaryJVMID: []
Tue Aug 25 14:46:02 2015 <214761440485162146940> No of JVMIDs found in cookie: 1
Tue Aug 25 14:46:02 2015 <214761440485162146940> Trying to locate Primary or Secondary using SrvrInfo with JVMID: -218849767
Tue Aug 25 14:46:02 2015 <214761440485162146940> getPreferredFromCookie: Found Primary 10.126.29.93:7004:7004
Tue Aug 25 14:46:02 2015 <214761440485162146940> getPreferredFromCookie: Found 1 servers
Tue Aug 25 14:46:02 2015 <214761440485162146940> Going to get the post data of size=0 clength=0
Tue Aug 25 14:46:02 2015 <214761440485162146940> attempt #0 out of a max of 5
Tue Aug 25 14:46:02 2015 <214761440485162146940> trying connect to PRIMARY '10.126.29.93'/7004/7004
Tue Aug 25 14:46:02 2015 <214761440485162146940> got a pooled connection to preferred server '10.126.29.93/7004' for '/grm/ecp/RemoteServiceServlet?callName=com.ygsoft.ecp.component.contentmanage.service.context.ISysParamSetContext.findControlParams', Local port:56890
T ue Aug 25 14:46:02 2015 <214761440485162146940> FileCache turned off reading and writing POST in chunks
Tue Aug 25 14:46:02 2015 <214761440485162146940> *******Exception type [PROTOCOL_ERROR] (malformed status 1) raised at line 848 of ../nsapi/URL.cpp
Tue Aug 25 14:46:02 2015 <214761440485162146940> sendRequest: exception caught while parsingHeaders w/ recycled connection to 10.126.29.93:7004, numfailures=1
Tue Aug 25 14:46:02 2015 <214761440485162146940> Marking 10.126.29.93:7004 as bad
Tue Aug 25 14:46:02 2015 <214761440485162146940> got exception in sendRequest phase: PROTOCOL_ERROR [line 848 of ../nsapi/URL.cpp]: malformed status 1 at line 3094
Tue Aug 25 14:46:02 2015 <214761440485162146940> *NOT* failing over after sendRequest() exception: PROTOCOL_ERROR as FileCaching is turned OFF

Tue Aug 25 14:46:02 2015 <214761440485162146940> request [/grm/ecp/RemoteServiceServlet?callName=com.ygsoft.ecp.component.contentmanage.service.context.ISysParamSetContext.findControlParams] did NOT process successfully..................


================New Request: [GET /grm/gris/contentmanage.viewFileServlet?resId=5237880154f142718aa55cbd090316e1 HTTP/1.1] =================
Tue Aug 25 14:46:17 2015 <214761440485177148068> INFO: SSL is not configured
Tue Aug 25 14:46:17 2015 <214761440485177148068> Using Uri /grm/gris/contentmanage.viewFileServlet
Tue Aug 25 14:46:17 2015 <214761440485177148068> After trimming path: '/grm/gris/contentmanage.viewFileServlet'
Tue Aug 25 14:46:17 2015 <214761440485177148068> The final request string is '/grm/gris/contentmanage.viewFileServlet?resId=5237880154f142718aa55cbd090316e1'
Tue Aug 25 14:46:17 2015 <214761440485177148068> SEARCHING id=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008] from current ID=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008]
Tue Aug 25 14:46:17 2015 <214761440485177148068> SEARCHING id=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008] from current ID=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008]
Tue Aug 25 14:46:17 2015 <214761440485177148068> The two ids matched
Tue Aug 25 14:46:17 2015 <214761440485177148068> @@@FOUND...id=[10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:7006,10.126.29.93:7007,10.126.29.93:7008], server_name=[10.126.29.93], server_port=[9080]
Tue Aug 25 14:46:17 2015 <214761440485177148068> getPreferred: availcookie=[lastLoginUserName=ISENCRYSTRING051E2DEFA2572680AF1748D259C39810; JSESSIONID=jkS4VcTJWM5BLhwtGrBK5BJbLrhf4QTQBqh92GsDXj1yjvJHWzPj!-218849767; ecpDataContext.tokenId=12fdd2400f4d41d6b2c1c042d9faf8ec]
Tue Aug 25 14:46:17 2015 <214761440485177148068> Found cookie from cookie header: JSESSIONID=jkS4VcTJWM5BLhwtGrBK5BJbLrhf4QTQBqh92GsDXj1yjvJHWzPj!-218849767
Tue Aug 25 14:46:17 2015 <214761440485177148068> Parsing cookie JSESSIONID=jkS4VcTJWM5BLhwtGrBK5BJbLrhf4QTQBqh92GsDXj1yjvJHWzPj!-218849767
Tue Aug 25 14:46:17 2015 <214761440485177148068> getpreferredServersFromCookie: [-218849767]
Tue Aug 25 14:46:17 2015 <214761440485177148068> primaryJVMID: [-218849767]
secondaryJVMID: []
Tue Aug 25 14:46:17 2015 <214761440485177148068> No of JVMIDs found in cookie: 1
Tue Aug 25 14:46:17 2015 <214761440485177148068> Trying to locate Primary or Secondary using SrvrInfo with JVMID: -218849767

Tue Aug 25 14:46:17 2015 <214761440485177148068> 

getPreferredFromCookie: Found Primary 10.126.29.93:7004:7004

Tue Aug 25 14:46:17 2015 <214761440485177148068> getPreferredFromCookie: Found 1 servers
Tue Aug 25 14:46:17 2015 <214761440485177148068> attempt #0 out of a max of 5

Tue Aug 25 14:46:17 2015 <214761440485177148068>

 Trying a pooled connection for '10.126.29.93/7006/7006'

Tue Aug 25 14:46:17 2015 <214761440485177148068> got a pooled connection to server '10.126.29.93/7006/7006' from general list for '/grm/gris/contentmanage.viewFileServlet?resId=5237880154f142718aa55cbd090316e1', Local port:56949
Tue Aug 25 14:46:17 2015 <214761440485177148069> 

解析到7004节点,却连接到了7006节点

系统之前一直应用正常,就这几天突然报错的,什么配置都没改动过。

请高手指教

展开
收起
爱吃鱼的程序员 2020-06-12 14:12:10 865 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    负载均衡了吧?分发也可能会分发到不同的端口上只是分发,没做负载均衡LoadModuleweblogic_modulemodules/mod_wl_22.so


    <IfModulempm_winnt.c> 
     ThreadsPerChild300 
     MaxRequestsPerChild10000 
     Win32DisableAcceptEx
    </IfModule> 


    <IfModulemod_weblogic.c>   
      WebLogicCluster10.126.29.93:7004,10.126.29.93:7005,10.126.29.93:700610.126.29.101:7005,10.126.29.101:7006,10.126.29.101:7007,10.126.29.101:7008,10.126.29.101:7009,10.126.29.101:7010
      MatchExpression*
      DebugOFF
      DebugConfigInfoOFF
      KeepAliveEnabledON
      KeepAliveSecs30
      WLIOTimeoutSecs7200
      FileCachingOFF
      MaxPostSize-1
      WLDNSRefreshInterval0 
      MaxSkipTime1800 
      DynamicServerListOFF
      HungServerRecoverSecs7200

    </IfModule>


    这是http.conf中的配置

    肯定的啊,这是用apache的作用啊。现在的问题是为什么报错呢你这用到分布式了,2台机器上的9个端口上。

    2020-06-12 14:12:29
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像