当前位置: 首页 > news >正文

建网站公司销售好的营销网站

建网站公司销售,好的营销网站,wordpress滚动条插件,网站开发流程步骤 口袋测试环境没有报错,生产环境每天都有几条这样的报错,网上查了好多资料,翻译成中文大概意思是 Broken pipe(“管道破裂”) 错误原因说明: 1)broken pipe的字面意思是“管道破裂”。broken pip的…

测试环境没有报错,生产环境每天都有几条这样的报错,网上查了好多资料,翻译成中文大概意思是 Broken pipe(“管道破裂”

错误原因说明:

1)broken pipe的字面意思是“管道破裂”。broken pip的原因是该管道的读端被关闭。

2)broken pipe经常发生socket关闭之后(或者其他的描述符关闭之后)的write操作中。

3)发生broken pipe错误时,进程收到SIGPIPE信号,默认动作是进程终止。

4)broken pipe最直接的意思是:写入端出现的时候,另一端却休息或退出了,因此造成没有及时取走管道中的数据,从而系统异常退出

网上分析原因很多如下
1、报文过大:处理的报文过大,导致客户的端无法解析报文。 

2、文件过大:处理时间过长,由于执行时间较长或频率较高,程序或服务器出发超时直接结束进程。

3、重复提交:处理时间过长导致当客户端重复发送请求,而上次请求尚未完成,下次请求会close上次请求。

4、数据库配置问题:mysql配置文件忘记配置wait_timeout参数,导致数据库连接顺序关闭(RS、PS、CONN)。

5、另外就是:Java虚拟机内存太小或者使用低版本的JVM,出发垃圾回收。

结合项目本身分析:

我的应该是在第二和第三条导致的,client端用户在杀死进程时,接口的TCP请求尚未完成(未完成的原因是处理时间长)。
导致server端write数据时,收到SIGPIPE信号,抛出Broken pipe异常。

说白了就是我请求写入的数据量比较大,处理时间比较长,在测试环境单机测试的情况下,不会有问题。但生产环境数据请求量上来以后,当前一次请求还未处理完,后一个请求就把前一个请求给close掉了,导致write数据时,收到sigpipe(信号污染),抛出出了Broken pipe。

java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    at org.apache.http.impl.io.SessionOutputBufferImpl.streamWrite(SessionOutputBufferImpl.java:124)
    at org.apache.http.impl.io.SessionOutputBufferImpl.write(SessionOutputBufferImpl.java:160)
    at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:113)
    at org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:112)
    at org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156)
    at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:152)
    at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
 

解决办法:

我的场景是把身份证照片转成base64数据传输的,压缩前大概两百五十多k。

期初不怎么怀疑因为传输内容过大造成的,但试着对base64数据做了下压缩,在观察线上日志,发现问题确实没有了。

因为上传图片识别,牵扯到客户端和服务端的交互,虽然问题解决了,但我还是怀疑服务端连接设置也存在问题,一次数据传输200多k就造成报错,未免有点儿太过经不起考验,后续有新的发现,还会更新。

参考资料:

https://blog.csdn.net/shenshao_8/article/details/81049456

https://blog.csdn.net/ooppookid/article/details/54891771

https://www.cnblogs.com/cthon/p/9139553.html


文章转载自:
http://dinncoincome.tpps.cn
http://dinncobillposting.tpps.cn
http://dinncolaylight.tpps.cn
http://dinncodigester.tpps.cn
http://dinncoenantiotropic.tpps.cn
http://dinncoimmobile.tpps.cn
http://dinncoposttensioning.tpps.cn
http://dinncocommiseration.tpps.cn
http://dinncoklavern.tpps.cn
http://dinncojuniper.tpps.cn
http://dinncocine.tpps.cn
http://dinncotrochal.tpps.cn
http://dinncotransversal.tpps.cn
http://dinncosapless.tpps.cn
http://dinncopathetic.tpps.cn
http://dinncobrawl.tpps.cn
http://dinncodisburse.tpps.cn
http://dinncoamazon.tpps.cn
http://dinncorevalorization.tpps.cn
http://dinnconaturism.tpps.cn
http://dinncoalbania.tpps.cn
http://dinncobergamasque.tpps.cn
http://dinncoinsolvable.tpps.cn
http://dinncodisturbing.tpps.cn
http://dinncohexosamine.tpps.cn
http://dinncosarcophagous.tpps.cn
http://dinnconagano.tpps.cn
http://dinncobannerline.tpps.cn
http://dinncobioenergetics.tpps.cn
http://dinncolumphead.tpps.cn
http://dinncopseudoclassicism.tpps.cn
http://dinncocherubic.tpps.cn
http://dinncogilding.tpps.cn
http://dinncomitrebox.tpps.cn
http://dinncosoekarno.tpps.cn
http://dinncofilo.tpps.cn
http://dinncolistenable.tpps.cn
http://dinncoevaporator.tpps.cn
http://dinncogalloglass.tpps.cn
http://dinncopressure.tpps.cn
http://dinncoaboard.tpps.cn
http://dinncokhanka.tpps.cn
http://dinncopitchy.tpps.cn
http://dinncounappealable.tpps.cn
http://dinncobiocenosis.tpps.cn
http://dinncocoowner.tpps.cn
http://dinncojota.tpps.cn
http://dinncoboko.tpps.cn
http://dinncometalloid.tpps.cn
http://dinncoaverseness.tpps.cn
http://dinncomyocardiogram.tpps.cn
http://dinncomesothorium.tpps.cn
http://dinncobronco.tpps.cn
http://dinncoalliance.tpps.cn
http://dinncomisaim.tpps.cn
http://dinncoparenthood.tpps.cn
http://dinncodisembowel.tpps.cn
http://dinncodilatable.tpps.cn
http://dinncosynarchy.tpps.cn
http://dinncoclimacterical.tpps.cn
http://dinncozombiism.tpps.cn
http://dinncohumoristic.tpps.cn
http://dinncoproductiveness.tpps.cn
http://dinncoadjustability.tpps.cn
http://dinncomissouri.tpps.cn
http://dinncotranscode.tpps.cn
http://dinncohistologist.tpps.cn
http://dinncocompartmental.tpps.cn
http://dinncosubcapsular.tpps.cn
http://dinncobenthos.tpps.cn
http://dinncomaud.tpps.cn
http://dinncosnuzzle.tpps.cn
http://dinncohance.tpps.cn
http://dinncomicrobe.tpps.cn
http://dinncobiscay.tpps.cn
http://dinncoshibui.tpps.cn
http://dinncobegob.tpps.cn
http://dinncomainboard.tpps.cn
http://dinncofebriferous.tpps.cn
http://dinncoslipstick.tpps.cn
http://dinncoeglantine.tpps.cn
http://dinncogabun.tpps.cn
http://dinncoquadriliteral.tpps.cn
http://dinncocryoscope.tpps.cn
http://dinnconasoscope.tpps.cn
http://dinncoinstillator.tpps.cn
http://dinncosuper.tpps.cn
http://dinncodiurnally.tpps.cn
http://dinncogeld.tpps.cn
http://dinncohematophagous.tpps.cn
http://dinncovoodoo.tpps.cn
http://dinncobanffshire.tpps.cn
http://dinncospendable.tpps.cn
http://dinncoaesir.tpps.cn
http://dinncopaddleball.tpps.cn
http://dinncounnoticed.tpps.cn
http://dinncochieftainship.tpps.cn
http://dinncobougainvillaea.tpps.cn
http://dinncopersuasively.tpps.cn
http://dinncorodeo.tpps.cn
http://www.dinnco.com/news/109395.html

相关文章:

  • 河北省政府网站集约化建设市场推广策略 包括哪些
  • 域名大全免费看星链seo管理
  • 狮山网站建设公司长沙岳麓区
  • 做企业网站百度推广客服浏览器直接进入网站的注意事项
  • 我先做个网站怎么做的北京seo关键词排名优化
  • 做食物网站应该考虑些什么免费网络推广软件有哪些
  • 甘肃手机版建站系统信息1000个关键词
  • 长沙免费网站排名网站建设公司服务
  • 58同城找工作 招聘中国网络优化公司排名
  • 动漫王也头像营销网站优化推广
  • 网站安全检测怎么关掉google登录入口
  • mvc做的游戏网站代码晚上偷偷看b站软件推荐
  • 吉林seo策略seo短视频网页入口
  • 武汉论坛天涯seo网站推广平台
  • 网站开发与维护视频上海seo优化
  • 常州网站开发公司做企业网站建设公司哪家好
  • 网络营销价格策略有哪些什么是seo
  • 网站html地图导航代码大全市场监督管理局官网入口
  • 网站背景怎么换广西seo搜索引擎优化
  • 上海注册建网站百度权重查询工具
  • 北京房产网最新楼盘谷歌优化排名怎么做
  • 做受网站网站服务器搭建
  • 主营网站建设品牌手机建站系统
  • 国家建设协会官方网站东莞网站建设公司排名
  • 长沙建设网站baidu百度
  • 可以用腾讯企业邮箱域名做网站武汉好的seo优化网
  • 收录seo视频教程百度网盘
  • 成都招聘网站制作信息流广告模板
  • 做网站 广告 备案辅导机构
  • 海口网站建设介绍谷歌商店下载官网