diff --git a/文档/20250326-G1CG调优.md b/文档/20250326-G1CG调优.md new file mode 100644 index 0000000..7782be8 --- /dev/null +++ b/文档/20250326-G1CG调优.md @@ -0,0 +1,52 @@ +# G1CG调优 +- https://cloud.tencent.com/developer/article/1518229 +- -XX:+UseG1GC -XX:+UseStringDeduplication +- -Xms2g -Xmx2g + -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:G1HeapRegionSize=1m -XX:G1MixedGCCountTarget=10 + -Xloggc:/data/server/${app}/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime +- -Xms2g -Xmx2g + -XX:+UseG1GC + -XX:MaxGCPauseMillis=100 // 调大停顿时间 + -XX:G1HeapRegionSize=2M # 调大region的大小来减少大对象占用的region数 + -XX:MaxTenuringThreshold=5 + -XX:InitiatingHeapOccupancyPercent=40 #手动设置IHOP。 + -XX:ConcGCThreads=4 //当前核心数的一半 + -XX:+UseStringDeduplication + -XX:AutoBoxCacheMax=20000 + -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m + -XX:+PrintPromotionFailure + -XX:+HeapDumpOnOutOfMemoryError + -XX:HeapDumpPath=./ + -Xlog:gc*:./gc-myapp.log + -XX:+DisableExplicitGC //禁止显示手动GC,如果系统使用了堆外内存就不要禁用 + -XX:G1MixedGCCountTarget=10 // 把old区的回收分布到更多次GC当中 +- https://zhuanlan.zhihu.com/p/444564414 + +## 启动参数 +```shell +java -server +-XX:+UseContainerSupport +-XX:InitialRAMPercentage=70.0 +-XX:MaxRAMPercentage=70.0 +-XX:+UseG1GC +-XX:MaxGCPauseMillis=20 +-XX:G1HeapRegionSize=1M +-XX:InitiatingHeapOccupancyPercent=45 +-XX:+UseStringDeduplication +-Ddruid.mysql.usePingMethod=false +-javaagent:/app/skywalking-agent/skywalking-agent.jar +-Dskywalking.agent.service_name=qifu-saas-wms-prod +-Dskywalking.collector.backend_service=oap.qifu.svc:11800 +-jar +-javaagent:/app/jmx_prometheus_javaagent-0.20.0.jar=8088:/app/jmx_exporter.yaml +/app/qifu-saas-wms-service-1.0.13.jar +--spring.config.location=/app/config/bootstrap.yml +``` +### 参数说明 +- https://www.cnblogs.com/yu007/p/17900844.html +- 容器环境替代 `-Xmx -Xms`: +- ```shell + -XX:+UseContainerSupport + -XX:InitialRAMPercentage=70.0 + -XX:MaxRAMPercentage=70.0 + ``` \ No newline at end of file diff --git a/杂项/20250106-备忘.md b/杂项/20250106-备忘.md index ec12d15..8deeb53 100644 --- a/杂项/20250106-备忘.md +++ b/杂项/20250106-备忘.md @@ -1,3 +1,19 @@ +## UAT 机器IP + +```shell +120.78.66.21;120.79.181.173;120.79.4.161;120.79.188.154;47.106.102.218;39.108.53.226;39.108.116.149 +``` + +## 企业微信 + +```yaml +token: NG4Vcr +corp-id: ww3ea89275951efdf1 +aes-key: 7RzIdfVg3rQggEjrk54Ccg7WDbNFXuHtQmdfO487MtA +agent-id: 1000004 +secret: o1AyujE88S9QE-Tk699f2FkK3QjlUM5P39v9NpQ3wxc +``` + ## 集简云 - corp_id: 3GUjL9MIoBYYXJetxI0wEUdmvbk1K6Le @@ -14,9 +30,8 @@ | | | 查询订单列表 | 1015869 | | | | 查询店铺列表 | 1015873 | - - ### 企业微信 + 上周企微的配置,再给帮我试一下行不行: IP 白名单:120.77.247.10 @@ -28,10 +43,10 @@ aesKey:7RzIdfVg3rQggEjrk54Ccg7WDbNFXuHtQmdfO487MtA agentid:1000004 secret:o1AyujE88S9QE-Tk699f2FkK3QjlUM5P39v9NpQ3wxc - - #### xblms + ##### 构建顺序 + ```shell npm install @@ -52,5 +67,6 @@ curl -d "grant_type=authorization_code&client_id=lms&client_secret=VqxZ5UCzhaIHq ``` ### DHL + - https://www.pluginhive.com/knowledge-base/how-to-get-dhl-account-number/?srsltid=AfmBOorGCz67d0HipLAh2ONAzypqdHHzdrgTZml6M2-BbcnsT8MQ6SbS - https://developer.dhl.com/user/register \ No newline at end of file diff --git a/杂项/test.http b/杂项/test.http index 08800b9..d184a41 100644 --- a/杂项/test.http +++ b/杂项/test.http @@ -41,28 +41,52 @@ Content-Type: application/json "email": "email" } -### 动态表单添加 +### 动态表单添加(本地) POST http://localhost:3100/jeecgboot/yuanmeng/test/submit?code=85c8a2d77cd843338bbd8a011fa56b9b&tabletype=2 Content-Type: application/json -X-Access-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NDE2NDg1ODcsInVzZXJuYW1lIjoiYXBpdXNlciJ9.WG8xpfTO6d5qzia071S3arRq6VFaa25wRmbYfkALrgE +Yuanmeng-Secret: scDD8*cF/cKKel03@.. { "create_by": "liuxiaohua", "create_time": "2025-03-07 18:16:35", "update_time": "2025-03-07 18:16:38", "submit_username": "liuxiaohua", - "submit_version": "v0.0.5", + "submit_version": "v0.0.7", "qifu_devops_test_submit_git": [ { "git": "http://git.keyfil.com/saas-back-end/qifu-saas-eg.git", - "jenkins_pipeline": "" + "env": "develop", + "branch": "dev" } ], "qifu_devops_test_submit_task": [ { - "test_submit_id": "", "task_id": "123", "task_title": "123" } ] -} \ No newline at end of file +} + +### 动态表单添加(开发) +POST http://jeecg.qifu.com/jeecgboot/yuanmeng/test/submit?code=bd6b2daf52ed474290d769ea1b220d7f&tabletype=2 +Content-Type: application/json +Yuanmeng-Secret: scDD8*cF/cKKel03@.. + +{ + "submit_username": "liuxiaohua", + "submit_version": "v0.0.4", + "yuanmeng_test_submit_git": [ + { + "git": "http://git.keyfil.com/saas-back-end/qifu-saas-eg.git", + "env": "test", + "branch": "test" + } + ], + "yuanmeng_test_submit_task": [ + { + "task_id": "123", + "task_title": "123" + } + ] +} + diff --git a/杂项/test.json b/杂项/test.json index 51b5e5f..7d02523 100644 --- a/杂项/test.json +++ b/杂项/test.json @@ -1,211 +1,82 @@ { - "allFieldsMap": { - "ApprovalInfo": { - "SpStatus": "4", - "ApplyTime": "1742781402", - "ProcessList": { - "NodeList": [ - { - "SubNodeList": { - "Sptime": "0", - "Speech": "", - "SpYj": "1", - "UserInfo": { - "UserId": [ - "LiuQiang" - ] - } - }, - "SpStatus": "1", - "NodeType": "1", - "ApvRel": "2" - }, - { - "SubNodeList": [ - { - "UserInfo": [ - { - "UserId": [ - "WuQiaoLing" - ] - } - ] - }, - { - "UserInfo": [ - { - "UserId": [ - "JinKunChi" - ] - } - ] - }, - { - "UserInfo": [ - { - "UserId": [ - "18126133926" - ] - } - ] - }, - { - "UserInfo": [ - { - "UserId": [ - "GuoMengYi" - ] - } - ] - }, - { - "UserInfo": [ - { - "UserId": [ - "ChenTianNingrichard" - ] - } - ] - } - ], - "NodeType": "2" - } - ] + "project": { + "actions": "", + "description": "", + "keepDependencies": false, + "properties": { + "com.coravy.hudson.plugins.github.GithubProjectProperty": { + "plugin": "github@1.37.2", + "projectUrl": "http://git.keyfil.com/saas-back-end/gitlab-tinybee/", + "displayName": "" }, - "Comments": { - "CommentContent": "测试", - "CommentTime": "1742781905", - "CommentUserInfo": { - "UserId": [ - "LiuXiaoHua" - ] - }, - "CommentId": "7485191286674903713" - }, - "StatuChangeEvent": "10", - "SpRecord": { - "SpStatus": "1", - "ApproverAttr": "1", - "Details": { - "SpStatus": "1", - "Speech": "", - "Approver": { - "UserId": [ - "LiuQiang" - ] - }, - "SpTime": "0" + "jenkins.model.BuildDiscarderProperty": { + "strategy": { + "class": "hudson.tasks.LogRotator", + "daysToKeep": 7, + "numToKeep": 10, + "artifactDaysToKeep": -1, + "artifactNumToKeep": -1 } }, - "SpNo": "202503240005", - "SpName": "请假", - "Applyer": { - "Party": "76", - "UserId": "LiuXiaoHua" - }, - "TemplateId": "C4NwUaEfUNaPfjc8kyXYYk2V77jJwoGYvpoLwATbr", - "Notifyer": [ - { - "UserId": [ - "WuQiaoLing" - ] - }, - { - "UserId": [ - "JinKunChi" - ] - }, - { - "UserId": [ - "18126133926" - ] - }, - { - "UserId": [ - "GuoMengYi" - ] - }, - { - "UserId": [ - "ChenTianNingrichard" - ] - } - ] - }, - "CreateTime": "1742781905", - "Event": "sys_approval_change", - "ToUserName": "ww3ea89275951efdf1", - "FromUserName": "sys", - "MsgType": "event", - "AgentID": "1000004" - }, - "agentId": "1000004", - "toUserName": "ww3ea89275951efdf1", - "fromUserName": "sys", - "createTime": 1742781905, - "msgType": "event", - "event": "sys_approval_change", - "extAttrs": { - "items": [] - }, - "scanCodeInfo": {}, - "sendPicsInfo": { - "picList": [] - }, - "sendLocationInfo": {}, - "approvalInfo": { - "spNo": "202503240005", - "spName": "请假", - "spStatus": 4, - "templateId": "C4NwUaEfUNaPfjc8kyXYYk2V77jJwoGYvpoLwATbr", - "applyTime": 1742781402, - "applier": { - "userId": "LiuXiaoHua", - "party": "76" - }, - "spRecords": [ - { - "spStatus": "1", - "approverAttr": "1", - "details": [ - { - "approver": { - "userId": "LiuQiang" - }, - "speech": "", - "spStatus": "1", - "spTime": 0 + "hudson.model.ParametersDefinitionProperty": { + "parameterDefinitions": { + "net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition": { + "plugin": "git-parameter@0.9.19", + "name": "branch", + "description": "打包分支", + "uuid": "7066989e-1654-4bc1-8688-df99f290fc5a", + "type": "PT_BRANCH", + "branch": "", + "tagFilter": "*", + "branchFilter": ".*", + "sortMode": "NONE", + "defaultValue": "origin/master", + "selectedValue": "NONE", + "quickFilterEnabled": false, + "listSize": 5, + "requiredParameter": false } - ] + } } - ], - "notifier": [ - { - "userId": "WuQiaoLing" + }, + "scm": { + "class": "hudson.plugins.git.GitSCM", + "plugin": "git@5.0.2", + "configVersion": 2, + "userRemoteConfigs": { + "hudson.plugins.git.UserRemoteConfig": { + "url": "http://git.keyfil.com/saas-back-end/gitlab-tinybee.git", + "credentialsId": "gitlab" + } }, - { - "userId": "JinKunChi" + "branches": { + "hudson.plugins.git.BranchSpec": { + "name": "${branch}" + } }, - { - "userId": "18126133926" + "doGenerateSubmoduleConfigurations": false, + "browser": { + "class": "hudson.plugins.git.browser.GithubWeb", + "url": "http://git.keyfil.com/saas-back-end/gitlab-tinybee" }, - { - "userId": "GuoMengYi" + "submoduleCfg": { + "class": "empty-list" }, - { - "userId": "ChenTianNingrichard" + "extensions": "" + }, + "canRoam": true, + "disabled": false, + "blockBuildWhenDownstreamBuilding": false, + "blockBuildWhenUpstreamBuilding": false, + "triggers": "", + "concurrentBuild": false, + "builders": { + "hudson.tasks.Shell": { + "command": "source /etc/profile\n# mvn clean package -DskipTests\nmvn clean install -Dmaven.test.skip=true\njar_name=$(ls target/ | grep \".jar\" | grep -v \"original\" | head -n 1)\ncat > Dockerfile <