Relative Content

Tag Archive for spring-boottomcat

Why tomcat thread always above 80 while run the Springboot WAR?

I deployed my Spring Boot application on Tomcat. At first, it used only 10 threads, but from the next morning onwards, even during idle times, it was using more than 88 threads. I monitored this using the Tomcat manager. I don’t know what to do—could the issue be with the application or Tomcat?

Why tomcat thread always above 80 while run the Springboot WAR?

I deployed my Spring Boot application on Tomcat. At first, it used only 10 threads, but from the next morning onwards, even during idle times, it was using more than 88 threads. I monitored this using the Tomcat manager. I don’t know what to do—could the issue be with the application or Tomcat?

Why My Spring Boot Application is not available in tomcat server

<?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.3.1</version> <relativePath/> <!– lookup parent from repository –> </parent> <groupId>com.cicd</groupId> <artifactId>demo</artifactId> <version>0.0.1-SNAPSHOT</version> <name>demo</name> <description>Demo project for Spring Boot</description> <packaging>war</packaging> <url/> <licenses> <license/> </licenses> <developers> <developer/> </developers> <scm> <connection/> <developerConnection/> <tag/> <url/> </scm> <properties> <java.version>22</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> […]

File upload in spring boot

We upgraded to spring boot 3.1.10, we have a file upload functionality
uploadFile(@RequestPart(value = “file”) MultipartFile file)
It works in local, but on production server
2024-06-28 03:22:31 [::](http-nio-8080-exec-4) WARN org.apache.catalina.connector.Request.log: Creating the temporary upload location [/work/Tomcat/localhost/ROOT] as it is required by the servlet [dispatcherServlet]
2024-06-28 03:22:31 [::](http-nio-8080-exec-4) WARN org.apache.catalina.connector.Request.log: Failed to create the upload location [/work/Tomcat/localhost/ROOT]
2024-06-28 03:22:31 [::](http-nio-8080-exec-4) ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet].log: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request] with root cause
java.io.IOException: The temporary upload location [/work/Tomcat/localhost/ROOT] is not valid
at org.apache.catalina.connector.Request.parseParts(Request.java:2754)
at org.apache.catalina.connecto