Raj Datla

Greenhorn
+ Follow
since Sep 07, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Raj Datla


Hi All,

Running junit test cases throws java.lang.OutOfMemoryError: PermGen space, even fork=true is added to spawn new jvm for each test case, still junit fails with out of memory error,
i even used below vm arguments, still out of memory error. Thank you.

vmargs=-Xmx512M -Xms256m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:+UseOSErrorReporting

[junit] Tests run: 31, Failures: 0, Errors: 1, Time elapsed: 16.067 sec
[junit] Exception in thread "Thread-0" java.lang.OutOfMemoryError: PermGen s
pace
[junit] at java.lang.ClassLoader.defineClass1(Native Method)
[junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
[junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader
.java:142)
[junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[junit] at org.jacoco.agent.rt.internal_d8bef4a.output.FileOutput.writeE
xecutionData(FileOutput.java:55)
[junit] at org.jacoco.agent.rt.internal_d8bef4a.Agent.shutdown(Agent.jav
a:143)
[junit] at org.jacoco.agent.rt.internal_d8bef4a.Agent$1.run(Agent.java:6
0)
[junit] at org.jacoco.agent.rt.internal_d8bef4a.output.FileOutput.writeE
xecutionData(FileOutput.java:55)




Regards
Raj
6 years ago

Hi All,

Which type of design patterns used for Annotations in core java?.

Regards
Raj
8 years ago

Hi All,

Which type of design patterns Aspect oriented programming uses internally?.

Regards
Raj
Hi All,

Is it possible to distribute web application modules in different servers?.

There is a scenario:

Below Web modules to be distributed on 2 servers,

1)Register Customer - Server1

2)Display Customers - Server 2

servers are located in 2 different locations,

each module requires DB access

Performance is a criteria, users can access application in different servers without performance problems


8 years ago

Hi All,

Is there way to avoid out of memory exception programatically?, other than using JVM options "-XX:PermSize" and "-XX:MaxPermSize". I am trying to find solution during runtime of JVM.

Regards
Raj
8 years ago