Himanshu Rawat

Ranch Hand
+ Follow
since Nov 27, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Himanshu Rawat

Correctly stated..

You're unlikely to find a pure Java library, if that's what you're looking for

.

It's even more difficult for Solaris.

FFMPEG indeed is one of the few standard libraries. Making job easier.

All I intended to avoid Runtime calls but I guess no escaping!!

12 years ago
Hi,

Is there any Java API available which can convert/encode WAV files to AMR format?

Running ffmpeg using Java Runtime is one way but I am looking for other methods.

Here OS is Solaris.

Please guide.

Thanks,
Rawat
12 years ago
Ok. I will try with upgraded version of JavaMail.

OS allows everything if permissions are there.

12 years ago
Hi,

I am trying to rename a folder using java mail api but unable to do so.

Below is the pseudo code



Its always returning false, failing to rename the folder.

Please tell me what wrong I am doing here and how to make it work.

We are currently using javamail-1.2ea2 version.

Thanks,
Rawat
12 years ago
Hi Winston,

Design is THE main issue which can't be changed .

Yes, we analysed and diagnosed heap dumps through various tools and came to the conclusion i.e. "Reflection" issue and "String" literals. Heap dump was flooded with them!!

Earlier we had an option -Xnoclassgc which was preventing the unloading of classes but we now think that this option doesn't affect on Perm Gen area.

I am thinking of upgrading to "JDK 1.6 Update 29" with same options. May be it will solve at-least the high load issues if not Perm Gen


Thanks,
Rawat
13 years ago
Hi Prabakar,

Thanks for the document. I will go through it .

I am thinking of changing the collector i.e. –XX:+UseConcMarkSweepGC to –XX:+UseParallelOldGC.

Perm Gen is associated with storage of class/method definitions in old generation



If am correct, Perm Gen is related to non heap area??

Thanks,
Rawat
13 years ago
Hi,

We have a IP Telephony server [ uses lot of reflection ] with below JVM parameters .

Eariler Parameters :

-server -Xnoclassgc -XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=50 -XX:NewRatio=2 -Xms768m -Xmx768m -Xloggc:/logs/fw/gc.out

With above paramters we faced the problem of OutOfMemory Error: Perm Gen. After searching we added " -XX:MaxPermSize=256m " to it but this will not solve the issue. It will just delay and sooner or later we can again hit the same problem. So we added few more parameters as below

-XX:MaxPermSize=256m
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled

and removed only -Xnoclassgc.

But above new parameters caused high load averages on the Solaris Servers and lot of logging started happening in the gc.out that might be the cause for the same. I am not sure about this.

Please guide me in getting the right combination of parameters.

Java version :

java -version
java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03)
Java HotSpot(TM) Server VM (build 1.5.0_30-b03, mixed mode)

Thanks,
Rawat
13 years ago

Hi,

I already have a mime message with multiple embedded attachments.

For e.g.

 Message 1
 |
 |--> Message 2 [ 1st attachment to Message 1 ]
           |
           |--> Message 3 [ 1st attachment to Message 2 ]
                    |
                    |--> Message 4 [ 1s attachment to Message 3 ]

I got the top level message i.e Message 1 with some

From : [email protected]



Every message will have some

From

value.

I want to just the change the values of From header for embedded messages i.e. Message 2, Message 3 and Message 4, keeping rest information intact.

Guys, please tell me the the way to do it

Thanks,
Rawat|
14 years ago
Hi,

Please tell me how to convert an HTML file to TIFF file?

Input HTML file has contents (test.html)



Opening in vi editor shows same content as above and on web page same as any other HTML file.

Thanks
Rawat
14 years ago
Hi,

Can anyone tell me how to use VLC player with java.

Problem is like this.

Want to have a player which can be easily integrated in web browsers and then can stream the audio and video(H.264 over RTP) sent from the media servers.

Please help me. Any other information required please ask me.


Cheers
Rawat

14 years ago
Hi Paul

Can we do something like this



where ARRAY will have all the entries??



hi,

Thanks for quick reply

right now I am doing like this


value = primary key of table

This is called as many time as there are entires which i think is not good.

Comments please??

Hi,

i don't know where to ask the problem so I'm asking here.

I need to delete some 5000 entries from oracle database through Java.

First approach was to create prepared statement with delete query and then delete one by one. But this approach is not efficient as entries might got 10K and is not constant.

Is there any other way to do it?? Like having PL/SQL procedure which can accept an array, vector something like that??

Please help

Cheers
Rawat
Hi Folks,

One of the log files generated by openladp i.e slurpd.replog (location = /etc/openldap-slurp/replica/), is keep on increasing (size reached to 800MB and more). Is this behavior normal?

Isn't this file should be cleared periodically??Is there any way to clear this file??

Please give comments and suggestions

Cheers
Rawat
15 years ago