Sanjay Chougule

Ranch Hand
+ Follow
since Mar 04, 2008
Merit badge: grant badges
For More
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 Sanjay Chougule

thanks for guiding.....

Currently following method is taking 19.6 % CPU useage: Please find out mistakes so that performance will improve.

As I am very fresher and also currently i am exploring Swing, your help is very valuable for me.

/**
* Sets the lF.
*
* @param LFclassname the new lF
*/
void setLF(String LFclassname) {
try {
UIManager.setLookAndFeel(LFclassname);
SwingUtilities.updateComponentTreeUI(this.avpFrame);
LookAndFeel lfcur = UIManager.getLookAndFeel();

for (int ii = 0; ii < this.lf.length; ii++) {
if (lfcur.getName() == this.lf[ii].getName()) {
this.LookAndFeelInuseIndex = ii;
this.LookAndFeelinuse = LFclassname;
}
}
} catch (ClassNotFoundException e1) {
} catch (InstantiationException e2) {
} catch (IllegalAccessException e3) {
} catch (UnsupportedLookAndFeelException e4) {
}
}

here is CPU useage Report:
Thread selection: All thread groups
Thread status: Runnable
Aggregation level: Methods

78.0% - 1,957 ms - 1 inv. com.xyz.avp.xyz.VoicePlayerFrame.main
71.0% - 1,783 ms - 1 inv. com.xyz..avp.xyz.VoicePlayerFrame.<init>
21.7% - 545 ms - 1 inv. com.xyz..avp.xyz.VoicePlayerFrame.loadPersist
20.8% - 522 ms - 1 inv. com.xyz..avp.xyz.VoicePlayerFrame.setLF
19.6% - 491 ms - 1 inv. javax.swing.SwingUtilities.updateComponentTreeUI

13.7% - 343 ms - 1 inv. com.xyz..avp.AvpMediator.setFileChoose
13.2% - 331 ms - 1 inv. javax.swing.JFrame.<init>



Thanks once again.
15 years ago
yes, you are right.
Here are few threads going in wait state for long time.
Report showing that only running threads very few and waiting thread are 6 to 7 .
Then how to resolve this.
15 years ago
I am using Jprofile which gives me following CPU usage report


85.6% - 2,058 ms - 1 inv. com..avp.XYZVoicePlayerFrame
5.8% - 138 ms - 6 inv. direct calls to methods of filtered classes
4.5% - 107 ms - 1 inv. java.awt.EventDispatchThread
4.0% - 96,049 �s - 1 inv. com.XYZ.avp.audio.PlayThread
0.2% - 3,763 �s - 1 inv. com..avp.audio.AudioRecorder

most CPUY consuming class is avp.XYZVoicePlayerFrame which is GUI class.

I think it is sufficient to understand issue..
thanks
15 years ago
I have a Java audio player,developed in Swing and Sound API. Currently GUI thread are decreasing CPU performance.So please suggest me to improve performance.

Thanks in Advance.
15 years ago
Hi
I need help on develoing plugin using jface and swt for IBM lotus notes.

thanks in advance,
Sanjay
15 years ago
Thanks.
I have gone through this.
I want more information on Plugin Development for Lotus notes.

Thanks in advance.
Sanjay.
Hi,
I am new for Eclipse plugin development.
Please give me some links for start from basics.

thanks in advance.

Sanjay.
Hi,
what is your current location.
In Pune city one small scale company have opening for fresher.
please give me your details if your interested.

regards,
Sanjay.
15 years ago
Thanks Ben ,
i have used applet but there are some problem because i am using JFreeChart with my applet .
i want learn Java Web Start (JWS), could you please hellp me
thanks .
15 years ago
hi all !
i have written a code for create Jframe , & i am open this frame on jsp after click on button (Chart).
in this case my frame generate at server side but i want to open it at client side .
i am doing all of this stuff first time , am i going correct way ....??
please help me ,
thanks in advance ...
15 years ago
Hi Ernest !!!
I have also tried same thing , i.e. copy client data at server & reuse it but reusing second time it gives same error �.
This inputstream also not support mark() & reset() methods .
15 years ago
is there no any other way except reopen the file ,
as i explain last post
i store that requist in two different InputStream , but it gives same error

i have also copied that inputstream in another inputstream , but it not work
[ May 12, 2008: Message edited by: Sanjay Chougule ]
15 years ago
hi ! ,
i just want to add some lines ....
i receive input stream as follow
-------------------------------------------------
InputStream f1 = (InputStream) request.getAttribute("fileStream");
-------------------------------------------------
this one is one excel file ...
now pass this 'f1'

method1(f1);// here i m takiing 'f1' as InputStream or FileInputStream (by typecasting 'f1')

in method1 i am able to read input stream using apache api
suppose i pass this inputStream again to 'method1()' it gives error ...
15 years ago
yes i am reusing ...
15 years ago