开发者社区> 问答> 正文

maven@osc 服务不稳定的问题?报错

Tomcat 8.0.24
Nginx 2.0.3

无法访问时候,nginx error.log日志是这样的:

2015/08/04 16:07:06 [error] 13130#0: *97877 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 180.97.152.3, server: maven.oschina.net, request: "GET /service/local/repositories/central/content/org/springmodules/spring-modules-osworkflow/0.8/spring-modules-osworkflow-0.8-sources.jar HTTP/1.1", upstream: "http://127.0.0.1:8080/service/local/repositories/central/content/org/springmodules/spring-modules-osworkflow/0.8/spring-modules-osworkflow-0.8-sources.jar", host: "maven.oschina.net"



此时tomcat日志:
04-Aug-2015 16:07:45.636 SEVERE [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@2d92f2be]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.web.subject.support.WebDelegatingSubject@1597b8d2, org.apache.shiro.util.ThreadContext_SECURITY_MANAGER_KEY=org.apache.shiro.web.mgt.DefaultWebSecurityManager@7dac1a45}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
04-Aug-2015 16:07:45.637 SEVERE [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.yammer.metrics.stats.ThreadLocalRandom$1] (value [com.yammer.metrics.stats.ThreadLocalRandom$1@4d6b16d9]) and a value of type [com.yammer.metrics.stats.ThreadLocalRandom] (value [com.yammer.metrics.stats.ThreadLocalRandom@1be6ee11]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.



另外,平时的一些报错:
2015-08-04 16:23:47 ERROR [8080122] anonymous org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got RemoteStorageException in proxy repository "Central" [id=central] while retrieving remote artifact "ResourceStoreRequest{requestPath='/org/springframework/org.springframework.beans/3.1.1.RELEASE/org.springframework.beans-3.1.1.RELEASE.jar', requestContext=RequestContext{this={request.address=127.0.0.1, request.condition.ifNoneMatch={SHA1{83d0e5adc98714783f0fb7d8a5e97ef4cf08da49}}, request.remoteOnly=false, request.url=http://maven.oschina.net/content/groups/public/org/springframework/org.springframework.beans/3.1.1.RELEASE/org.springframework.beans-3.1.1.RELEASE.jar, request.user=anonymous, request.localOnly=false, request.agent=Mozilla/5.0 Gecko/20100115 Firefox/3.6, request.asExpired=false, request.appRootUrl=http://maven.oschina.net/, request.external=true, request.authorized=true}, parent=null}, pathStack=[/groups/public/org/springframework/org.springframework.beans/3.1.1.RELEASE/org.springframework.beans-3.1.1.RELEASE.jar], processedRepositories=[public, ibiblio, central], appliedMappings={public=[]}}" from URL http://repo.maven.apache.org/maven2/, this is 1 (re)try, cause: java.net.ConnectException: Connection timed out

先这些吧~



展开
收起
爱吃鱼的程序员 2020-06-12 15:22:30 458 0
2 条回答
写回答
取消 提交回答
  • 精于基础,广于工具,熟于业务。

    host解析不了。网速问题居多。可以等网速好了再试试

    2020-06-12 17:07:13
    赞同 展开评论 打赏
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
    @双_双 速来围观一大片空白。。。 其实我也看不懂   公司私服没那么大访问量, Connectiontimedout到是也在日志里看到过我记得nexus是可以作为独立服务端运行的,试试抛掉tomcat呢?直接用standaloneservice运行起来看看呢?nexus下面都是按照目录层级结构组织的,nginx做个动静分离应该就行了吧

    nginx日志是说连接不上后端tomcat吧;

    但是tomcat日志是说停止tomcat时不能回收某些对象,可能是内存泄露。怎么停的,是内存泄露导致Tomcat内存用完死掉?

    还有其他日志么?

    第一次见到服务器用debianUbuntuserver?那也够牛的~这服务器是ubuntu的用了一段时间的osc之后,果断换回默认的了。嗯,用中央库也可以的
    2020-06-15 11:11:13
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像