Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
30 views

Proper way to shut down a Spring Boot application after a specific unit of work is completed

I have a number of Spring Boot services that are always running that perform several different kinds of tasks. For example I have one service that is reading from an Azure Service Bus queue using ...
kickd16's user avatar
-1 votes
0 answers
49 views

Java app memory increase very fast and GC happening too frequent [closed]

I have a spring boot cronjob running in container. I found that container were killed by kubernetes several times. This is the memory and CPU profiling of the app when the job is running: This is ...
zonyang's user avatar
  • 884
0 votes
1 answer
12 views

Supported Kubernetes Versions for Each Kubernetes Client JAR Version

One of our spark containers uses a jar called "kubernetes-client-4.12.0.jar". Is there a document available mentioning its respective Kubernetes version support. Currently we have Kubernetes ...
Alexy Pulivelil's user avatar
1 vote
0 answers
30 views

How do I use a Kubernetes Watcher to monitor namespace events in a cluster?

This is almost certainly a misuse/misread of the API on my end but was wondering if I could get some guidance on this: This is my code snippet/attempt at creating a watcher to list all namespace ...
Brian Lau's user avatar
2 votes
0 answers
80 views

Unable to connect visualvm to java application after 7.3 gradle upgrade

We recently upgraded gradle version in our project from 7.1.x to 7.3.x. We observed that we are no longer able to connect visualvm java(11) application running in kubernetes. Port-forward works but ...
curious_soul's user avatar
0 votes
0 answers
56 views
+50

Spring Cloud Gateway with Kubernetes discovery client for http and grpc requests

I'm trying to implement gateway service using Spring Cloud Gateway with k8s client dicovery that will redirect both http/1.1 and http/2(GRPC) requests I set the following configurations: server: ...
Lior Derei's user avatar
-1 votes
1 answer
31 views

How can I capture exceptions thrown by a Java application within Airflow's on_failure_callback?

I am using Airflow to run KubernetesPodOperator tasks that run java application image. The java application use beam dataflow. My custom airflow operators inherit KubernetesPodOperator. I am trying to ...
Maria Dorohin's user avatar
-1 votes
1 answer
25 views

Gcs fuse with google buckets - Too many open files error with java app

I have a java spring boot application deployed as kubernetes application in GCP. I use GCS fuse to access Google Cloud Storage buckets with the Cloud Storage FUSE CSI driver because it allows me to ...
Salim Hamidi's user avatar
  • 21.2k
1 vote
0 answers
16 views

Why environment variable value is changed implicitly from N to false during kubernetes deployment?

I introduced a environment variable called mongo_switch: N(Not mongo_switch: "N",no double quote around N ) in local application.yml in springboot 3.1.5. In program, I use the variable like ...
Andy Li's user avatar
  • 11
0 votes
0 answers
53 views

invalid_token_response -An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response: PKIX path building failed

I am trying to run spring-security-azuread from spring tutorials, i am able to run this in windows system as its spring boot application, but when i am trying to run in docker container from redhat ...
Nishu's user avatar
  • 105
-1 votes
0 answers
39 views

Using custom shutdown command string in Tomcat without modifying server.xml file

I have a kubernetes tomcat deployment and with property readOnlyRootFilesystem: true which prohibits me from modifying server.xml file. But I need to use a random shutdown port every time the tomcat ...
Shubhankar Kumar's user avatar
0 votes
0 answers
24 views

How Does Java process exits gracefully by shutting kafka consumers and producers during pod deletion in Kubernetes

When the kubectl pod delete command is issued, it isn't waiting for the shutdown hook in a Java Kafka consumer and producer application to complete processing any unprocessed events. What steps need ...
vishwaja reddy's user avatar
0 votes
0 answers
63 views

SSLHandshakeException: Spring boot with Azure IDP in Docker

I have integrated Azure Idp with spring boot for single sign on, it works well in local or windows deployment as service, but throws SSL exception when deployed in docker, below is the application yml ...
Nishu's user avatar
  • 105
-1 votes
1 answer
33 views

Start consuming kafka messages after Envoy Sidecar becomes ready

I have an application running is Prod in Kubernetes, and during the deployment I get bunch of errors. 15:12:03.495 [xx-0-C-1] ERROR o.s.k.l.KafkaMessageListenerContainer - Consumer exception java.lang....
Ajay Kumar's user avatar
-1 votes
1 answer
72 views

Why should we set -XX:InitialRAMPercentage and -XX:MaxRAMPercentage to the same value for cloud environment?

I've read multiple articles about best practices for setting the {Min/Max/Initial}RAMPercentage values for java applications in the cloud environment. The purpose of Min and Max RAM Percentage flags ...
ilja's user avatar
  • 379

15 30 50 per page
1
2 3 4 5
83