yuilei
yuilei
> 文件多大 2M以内,我试过几百k的也不行
> > > 文件多大 > > > > > > 2M以内,我试过几百k的也不行 > > 没法复现,有日志吗 日志大概是这样 `4/28/2024, 5:52:59 AM Bot(0): ws 消息上报 ws://host:port/ws/shiro {"self_id":0,"user_id":1,"time":1714283578,"message_id":-2146617278,"real_id":-2146617278,"message_type":"group","sender":{"user_id":1,"nickname":" ","card":"","role":"owner"},"raw_message":"[CQ:file,file=小狼2.txt,path=,file_id=/ba1494d5-c06d-4d5b-9087-3d5aebccd27c,file_size=421240]","font":14,"sub_type":"normal","message":"[CQ:file,file=小狼2.txt,path=,file_id=/ba1494d5-c06d-4d5b-9087-3d5aebccd27c,file_size=421240]","message_format":"string","post_type":"message","group_id":2,"raw":{"msgId":"7362791905429847964","msgRandom":"1997699783","msgSeq":"14364","cntSeq":"0","chatType":2,"msgType":3,"subMsgType":1,"sendType":0,"senderUid":"","peerUid":"2","channelId":"","guildId":"","guildCode":"0","fromUid":"0","fromAppid":"0","msgTime":"1714283578","msgMeta":"0x","sendStatus":2,"sendRemarkName":"","sendMemberName":"","sendNickName":" ","guildName":"","channelName":"","elements":[{"elementType":3,"elementId":"7362791905429847963","extBufForUI":"0x","textElement":null,"faceElement":null,"marketFaceElement":null,"replyElement":null,"picElement":null,"pttElement":null,"videoElement":null,"grayTipElement":null,"arkElement":null,"fileElement":{"fileMd5":"e208691209ef8443a6f9ee41652de80a","fileName":"小狼2.txt","filePath":"","fileSize":"421240","picHeight":0,"picWidth":0,"picThumbPath":{},"expireTime":"0","file10MMd5":"","fileSha":"","fileSha3":"","videoDuration":0,"transferStatus":1,"progress":0,"invalidState":0,"fileUuid":"/ba1494d5-c06d-4d5b-9087-3d5aebccd27c","fileSubId":"","thumbFileSize":0,"fileBizId":102,"thumbMd5":null,"folderId":null,"fileGroupIndex":0,"fileTransType":null,"subElementType":8,"storeID":0},"liveGiftElement":null,"markdownElement":null,"structLongMsgElement":null,"multiForwardMsgElement":null,"giphyElement":null,"walletElement":null,"inlineKeyboardElement":null,"textGiftElement":null,"calendarElement":null,"yoloGameResultElement":null,"avRecordElement":null,"structMsgElement":null,"faceBubbleElement":null,"shareLocationElement":null,"tofuRecordElement":null,"taskTopMsgElement":null}],"records":[],"emojiLikesList":[],"commentCnt":"0","directMsgFlag":0,"directMsgMembers":[],"peerName":"测试开发群","freqLimitInfo":null,"editable":false,"avatarMeta":"","avatarPendant":"","feedId":"","roleId":"0","timeStamp":"0","clientIdentityInfo":null,"isImportMsg":false,"atType":0,"roleType":0,"fromChannelRoleInfo":{"roleId":"0","name":"","color":0},"fromGuildRoleInfo":{"roleId":"0","name":"","color":0},"levelRoleInfo":{"roleId":"0","name":"","color":0},"recallTime":"0","isOnlineMsg":true,"generalFlags":"0x","clientSeq":"0","fileGroupSize":null,"foldingInfo":null,"multiTransInfo":null,"senderUin":"1","peerUin":"2","msgAttrs":{},"anonymousExtInfo":null,"nameType":0,"avatarFlag":0,"extInfoForUI":null,"personalMedal":null,"categoryManage":0,"msgEventInfo":null,"msgShortId":-2146617278}} 4/28/2024, 5:52:59 AM Bot(0): ws...
> 有看过内存是否有泄漏嘛?如果频率不高的话会不会有可能是因为某个时点负载高了服务器内存不足导致的OOM? 看过当时的内存只用了60%
> 会不会是OOM之后内存被GC了?所以你看到的时候内存占用不高,JVM虚拟机你分配了多大的内存? 倒是有可能,因为我是报错发生一段时间后才发现的,没有显示设置内存,我改一下再观望下。