diff --git a/jmeter/testMultipleVisitorsWithMultipleRequests.jmx b/jmeter/testMultipleVisitorsWithMultipleRequests.jmx deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/jmeter/testVisitorFlowWithRealServer.jmx b/jmeter/testVisitorFlowWithRealServer.jmx deleted file mode 100644 index e6cfa7c5db..0000000000 --- a/jmeter/testVisitorFlowWithRealServer.jmx +++ /dev/null @@ -1,177 +0,0 @@ - - - - - false - true - false - - - - ORG_UID - df_org_uid - = - - - AGENT_UID - df_ag_uid - = - - - TYPE - 0 - = - - - - - - - - continue - - false - 1 - - 1 - 1 - 1633024800000 - 1633028400000 - false - - - - - - - - - false - sid - ${AGENT_UID} - = - true - - - false - nickname - Test Visitor - = - true - - - false - uid - visitor_test_uid - = - true - - - false - orgUid - ${ORG_UID} - = - true - - - false - type - ${TYPE} - = - true - - - false - client - TEST - = - true - - - - localhost - 8080 - http - /visitor/api/v1/init - POST - true - false - true - false - - - - - - - - - - false - sid - ${AGENT_UID} - = - true - - - false - nickname - ${__V(nickname)} - = - true - - - false - avatar - ${__V(avatar)} - = - true - - - false - uid - ${__V(uid)} - = - true - - - false - orgUid - ${ORG_UID} - = - true - - - false - type - ${TYPE} - = - true - - - false - client - TEST - = - true - - - - localhost - 8080 - http - /visitor/api/v1/request - POST - true - false - true - false - - - - - - - - - \ No newline at end of file diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/AgentEntity.java b/modules/service/src/main/java/com/bytedesk/service/agent/AgentEntity.java index c9acdff568..10dcadd4df 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentEntity.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/AgentEntity.java @@ -2,7 +2,7 @@ * @Author: jackning 270580156@qq.com * @Date: 2024-01-29 16:19:51 * @LastEditors: jackning 270580156@qq.com - * @LastEditTime: 2024-12-23 21:30:05 + * @LastEditTime: 2024-12-24 16:24:46 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk * Please be aware of the BSL license restrictions before installing Bytedesk IM – * selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. @@ -117,7 +117,7 @@ public class AgentEntity extends BaseEntity { // max concurrent chatting thread count @Builder.Default - private int maxThreadCount = 10; + private int maxThreadCount = 5; /** 存储当前接待数量等 */ @Builder.Default diff --git a/starter/src/test/java/com/bytedesk/starter/VisitorAnonymousControllerIntegrationTest.java b/starter/src/test/java/com/bytedesk/starter/VisitorAnonymousControllerIntegrationTest.java index 9fa0b25ec1..d0edc9159d 100644 --- a/starter/src/test/java/com/bytedesk/starter/VisitorAnonymousControllerIntegrationTest.java +++ b/starter/src/test/java/com/bytedesk/starter/VisitorAnonymousControllerIntegrationTest.java @@ -112,8 +112,8 @@ public class VisitorAnonymousControllerIntegrationTest { @Test public void testMultipleVisitorsWithMultipleRequests() throws InterruptedException { - int visitorCount = 100; - int requestsPerVisitor = 100; + int visitorCount = 10; + int requestsPerVisitor = 1; // Create a thread pool for managing concurrent visitors ExecutorService executorService = Executors.newFixedThreadPool(20);