MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Spring integration tests with Team city: OutOfMemo

rajeshkumar created the topic: Spring integration tests with Team city: OutOfMemo
Spring integration tests with Team city: OutOfMemoryError
Hello all,

On our project we wanted to start having integration tests with JUnit and Spring’s helper classes for integration testing.

We used the same context files that we use for the application and added some context files to add objects for test data from our model package.

The tests will run on Team city when commited and are disabled by making the Spring method isDisabledInThisEnvironment() from it’s test helper classes return true.

When we run these tests as enabled on our local envirornment, thet run fine. However, when we run them on Team City, the context files alone cause an OutOfMemoryError. We did some diagnosis and realized that if we take away all of the test code that are using the Spring context files for testing, we still get an OutOfMemoryError on Team City.

If we got rid of all of the context files that we wanted to use for integration testing, then Team City would no longer get an OutOfMemoryError.

Is there a way Spring can be configured to do these integration tests without getting an OutOfMemoryError on Team City? Is there a way to configure Team city so we do not get an OutOfMemoryError using the Spring context files for our integration tests?
Reply With Quote
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

TeamCity Meta-Runners: Reuse Build Steps with Parameterized Runner Types

Meta-Runners in TeamCity help you package repeated build steps into reusable, parameterized runner types. This guide shows when to use them, how to extract one, and how to apply it safely across build configurations.

Read More

TeamCity Meta-Runners Guide: Reusable Build Steps vs Build Templates

Learn how TeamCity Meta-Runners help you eliminate duplicated build steps across configurations. This guide compares templates vs Meta-Runners and walks through a parameterized Heroku deploy example.

Read More

Continuous Integration Training Blueprint for .NET Teams (MSBuild, TeamCity, NUnit, NCover, FxCop, Web Deploy)

This revised guide converts an older CI course announcement into a practical training blueprint for build and release teams. It maps each tool to the pipeline, shows a workflow diagram, and includes realistic command-line examples for labs.

Read More

TeamCity Training Curriculum: CI/CD Course Outline, Labs, and Delivery Formats

A structured, practical rewrite of the original TeamCity training post for DevOps and build/release teams. Use it to evaluate course scope, delivery model, lab depth, and tooling coverage before enrolling.

Read More

JUnit 4 Test Logging with SLF4J: Cleaner Output with Rules and Parameterized Messages

This guide shows how to evolve JUnit 4 test logging from println debugging to structured SLF4J logs using rules and parameterized messages. You’ll see side-by-side approaches, lifecycle flow, and production-friendly example code.

Read More

Bamboo vs TeamCity vs CruiseControl: Historical CI Comparison and Practical Evaluation Guide

This revised guide turns a brief 2010 comparison into a structured, engineering-focused reference. It preserves the original claims, adds a CI workflow diagram, and provides a practical checklist for modern tool evaluation.

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x