我有一個用Spring Boot編寫的只有GET和POST方法的REST服務。 GET/POST方法從cassandra集羣中檢索/發佈數據。 我試着同時運行100個用戶測試REST服務。 我JMeter的配置是:REST使用Jmeter的服務負載測試
當我運行這個測試,最初的幾個要求它提供錯誤和半請求成功。 這裏是
然後我檢查錯誤的原因在結果樹,發現這個響應數據結果表:
{"timestamp":1474278650822,"status":500,"error":"Internal Server Error","exception":"com.datastax.driver.core.exceptions.NoHostAvailableException","message":"org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)","path":"/post"}
我無法弄清楚,爲什麼它沒有前幾個請求連接到cassandra羣集。
我是cassandra,REST服務和jmeter的新手。任何人都可以指出我正在犯什麼錯誤。 注意:我已使用Postman測試了我的REST服務,它的功能很好,既有GET和POST請求。
謝謝,我不知道池的大小。我會研究它。 – hmachahary