How to get processing time in RMI program
Hi, all
I am a newbie in Java RMI application. I am currently developing a small calculation application using Java RMI.
My question is how can i get the processing time from client input until the server give feedback to the client?
Thanks,
Sohming
sohming wrote:
I have another question, is the default RMI using the reliable/unreliable/switchable connection?No. It is not a messaging protocol and uses direct synchronous connectivity. As such, if you get a reply it was successfully sent.
Can i test processing time using different type of protocol?You can use the same approach for testing connectivity for a range of protocols. However I suggest you run the tests many times if this is realistic for your use case.
I have a performance comparison of many messaging and RMI solutions here [http://www.freshvanilla.org:8080/display/essence/Essence+Remote+Method+Invocation] under "What are similar libraries?"
I tested my own implementation for latency and throughput and you can get the results and download the source for those tests from this page.
Similar Messages
-
SSAS 2008 - How to get processing times per dimension / measure group?
Hi experts!
SSAS 2008. I am doing analysis and I'm trying to get information (from dmv or log) about processing times per dimension / measure group. Any ideas how to do that?
Thanks,also in DMV there's no column recording the processing time, so we suggest you using SSAS AMO to programmatically get the state and last processed date time. Please see:
Analysis Management Objects (AMO)
Hi John,
Thanks for you info, As
Simon Suggested there is no DMV columns available.
You can use below link for more information.
Programming Administrative Tasks with AMO
Cube
partition attributes for last processed (timestamp and status)
Thanks
Suhas
Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
My Blog
Follow @SuhasKudekar -
How to change system time through java program
Hi
I want to know, how to change system time through java program.
give me a idia with example.
ThanksThere isn't any core Java API for this. Use JNI or call an external process with Runtime.exec().
~ -
How to get Process Task Retry Count using API (OIM 10g)
Hi ,
I want to get all the process task which are failed after retried 5 times.
For e.g Create user task in AD retried for 5 times but still it is in failed state. I want to get all such process task.
I am stuck at point how to get process task retry count from process definition?
ThanksYou can reference the code in the "Task Timed Retry" scheduled task to get what you are looking for. Here is the decompiled code:
>
package com.thortech.xl.schedule.tasks;
import Thor.API.Operations.tcScheduleTaskOperationsIntf;
import com.thortech.util.logging.Logger;
import com.thortech.xl.dataaccess.tcDataSetException;
import com.thortech.xl.dataobj.tcDataSet;
import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
import com.thortech.xl.util.logging.LoggerMessages;
import java.sql.Date;
import java.util.Hashtable;
public class tcTskTimedRetry extends SchedulerBaseTask
private static Logger logger = Logger.getLogger("Xellerate.Scheduler.Task");
Date isCurrentDate;
public void init()
logger.debug(LoggerMessages.getMessage("EnteredMethodDebug", "tcTskTimedRetry/init"));
this.isCurrentDate = new Date(System.currentTimeMillis());
logger.debug(LoggerMessages.getMessage("LeftMethodDebug", "tcTskTimedRetry/init"));
public void execute()
logger.debug(LoggerMessages.getMessage("EnteredMethodDebug", "tcTskTimedRetry/execute"));
tcDataSet localtcDataSet1 = new tcDataSet();
tcDataSet localtcDataSet2 = new tcDataSet();
tcDataSet localtcDataSet3 = new tcDataSet();
try
if (isStopped())
return;
localtcDataSet2.setQuery(getDataBase(), "select osi_retry_on from osi where 1=2");
localtcDataSet2.executeQuery();
if (isStopped())
return;
localtcDataSet2.setDate("osi_retry_on", this.isCurrentDate);
localtcDataSet1.setQuery(getDataBase(), "select osi.sch_key, osi.mil_key, osi.orc_key, osi.osi_rowver, sch.sch_rowver, osi.osi_retry_for, osi.osi_retry_on, osi.osi_retry_counter, sch.sch_note from osi osi,sch sch where osi.osi_retry_on <=" + localtcDataSet2.getSqlText("osi_retry_on") + " and osi.sch_key = sch.sch_key" + " and sch.sch_status='R'" + " and osi_retry_counter>0 order by osi.sch_key");
localtcDataSet1.executeQuery();
if (isStopped())
return;
int i = localtcDataSet1.getRowCount();
logger.debug("tcTskTimedRetry:execute:Number of Process tasks retrieved is=" + i);
tcScheduleTaskOperationsIntf localtcScheduleTaskOperationsIntf = (tcScheduleTaskOperationsIntf)getUtility("Thor.API.Operations.tcScheduleTaskOperationsIntf");
tcDataSet localtcDataSet4 = new tcDataSet();
localtcDataSet4.setQuery(getDataBase(), "select osi_retry_for, osi_retry_counter from osi where 1=2");
localtcDataSet4.executeQuery();
Hashtable localHashtable = new Hashtable();
if (isStopped())
return;
for (int j = 0; j < i; j++)
if (isStopped())
return;
localtcDataSet1.goToRow(j);
localtcDataSet3.setQuery(getDataBase(), "select count(*) as counter from osi osi,sch sch where osi.sch_key = sch.sch_key and osi_retry_for=" + localtcDataSet1.getLong("sch_key"));
localtcDataSet3.executeQuery();
if (isStopped())
return;
if (localtcDataSet3.getInt("counter") > 0)
continue;
localHashtable.put("osi_retry_for", String.valueOf(localtcDataSet1.getLong("sch_key")));
localHashtable.put("sch_note", localtcDataSet1.getString("sch_note"));
long l = localtcDataSet1.getLong("osi_retry_counter");
if (isStopped())
return;
try
localtcScheduleTaskOperationsIntf.createScheduleItem(localtcDataSet1.getString("orc_key"), localtcDataSet1.getString("mil_key"), localHashtable, l - 1L);
catch (Exception localException2)
logger.error(LoggerMessages.getMessage("ErrorMethodDebug", "tcTskTimedRetry/execute", localException2.getMessage()), localException2);
catch (tcDataSetException localtcDataSetException)
logger.error(LoggerMessages.getMessage("ErrorMethodDebug", "tcTskTimedRetry/execute", localtcDataSetException.getMessage()), localtcDataSetException);
logger.debug("PJ:tcTskTimedRetry:execute:DataSetexception has occured");
catch (Exception localException1)
logger.error(LoggerMessages.getMessage("ErrorMethodDebug", "tcTskTimedRetry/execute", localException1.getMessage()), localException1);
logger.debug(LoggerMessages.getMessage("LeftMethodDebug", "tcTskTimedRetry/execute"));
public boolean stop()
logger.debug("tcTskTimedRetry:stop:Task being stopped");
return true;
>
-Kevin -
How to get on the apple seeding program?
How to get in the apple seeding program. I really want to to test apples new iOS software.
Yes, but if you're not already a developer you shouldn't be testing beta software.
You shouldn't test beta versions of iOS on your day-to-day phone. You should have dedicated phone just for testing and it needs to be registered with Apple.
Being part of the developer program and having access to iOS betas is not intended for just curious, non-developer people. It is for real developers who need to test their own apps on future versions of the OS and provide detailed feedback to Apple for bug fixing.
If you're just curious about new OSs, don't bother. -
How to get current time and date??
How to get current time and date from my PC time and date to the java application??
i use java.util.* package but got error, that is:
- java.util.* and java.sql.* class are match
- abstract class cannot be instantiated
so what can i do, pls guide...thanks...There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
Don't import *. Import the specific classes you need.
Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother. -
How to get server time in Oracle Internet Directory (OID)?
Hi,
How to get current time on OID server? As in case AD, RootDSE contains currentTime attribute, Is there any attribute in OID through which I can get current time on server.
Thanks in advance for any help.
Regards,
UmeshHi,
wrong forum, use Identity Manager
Frank -
How to get a time from a NTP server in ActionScript 3 ?
Dear All,
I need your advice, how to get the time from NTP Server , I tried to do this, but I don't.
Thanks
Omar Mahmoudyou must use a server-side language supported by your server. php is a commonly supported language on most servers.
php tutorials can be found via google or any other search engine. -
Hi all,
I have problem how to get duration time between 2 date time (calendar):
example :
Calendar startDateTime
Calendar stopDateTime
how to get :
???? duration = stopDateTime - startDateTime
Thanks beforeCalendar one = new GregorianCalendar();
Thread.currentThread().sleep( 1000 );
Calendar two = new GregorianCalendar();
long time = two.getTimeInMillis() - one.getTimeInMillis();
System.out.println( "Hrs " + Math.round( time / ( 1000 * 60 * 12 ) ) );
System.out.println( "Mins " + Math.round( time / ( 1000 * 60 ) ) );
System.out.println( "Secs " + Math.round( time / 1000 ) );
System.out.println( "MSecs " + time ); -
How to get the time interveral for each status of worklow (wating,Inprocess
Hi Friends,
I have requreiemnt to get the time interval for each status of workflow.
ex.
status
workflow id | startd date | enddate | waiting | Inprocessing|Error|......
1026 10.10.2008 25.10.2008 1hr 1hr 30 min 2 hr
Please do give me idea how to get the time stam of each status of workflow.
Thanks,
D.prabhuHi,
I think the following tables would be helpful to you:-
SWW_CONT Container Contents for Work Item Data Container
SWW_CONTOB "Container Cont. for Work Item Data Container (Only Objects)"
SWWLOGHIST History of a work item
SWWORGTASK Assignment of WIs to Org.Units and Tasks
SWWUSERWI Current Work Items Assigned to a User
SWWWIHEAD Header Table for all Work Item Types
Hope it Helps!
Regards,
Kanika -
How to reduce process time in report
Hi all..
Is there any technique to reduce process time in report on programmer side??
Plz help me...Hi
check this and ensure that your code is as per the stds
1) Dont use nested select statements
2) If possible use for all entries in addition
3) In the where addition make sure you give all the primary key
4) Use Index for the selection criteria.
5) You can also use inner joins
6) You can try to put the data from the first select statement into an Itab and then in order to select the data from the second table use for all entries in.
7) Use the runtime analysis SE30 and SQL Trace (ST05) to identify the performance and also to identify where the load is heavy, so that you can change the code accordingly
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0db4c9-0e01-0010-b68f-9b1408d5f234
ABAP performance depends upon various factors and in devicded in three parts:
1. Database
2. ABAP
3. System
Run Any program using SE30 (performance analys) to improve performance refer to tips and trics section of SE30, Always remember that ABAP perfirmance is improved when there is least load on Database.
u can get an interactive grap in SE30 regarding this with a file.
also if u find runtime of parts of codes then use :
Switch on RTA Dynamically within ABAP Code
*To turn runtim analysis on within ABAP code insert the following code
SET RUN TIME ANALYZER ON.
*To turn runtim analysis off within ABAP code insert the following code
SET RUN TIME ANALYZER OFF.
Always check the driver internal tables is not empty, while using FOR ALL ENTRIES
Avoid for all entries in JOINS
Try to avoid joins and use FOR ALL ENTRIES.
Try to restrict the joins to 1 level only ie only for tables
Avoid using Select *.
Avoid having multiple Selects from the same table in the same object.
Try to minimize the number of variables to save memory.
The sequence of fields in 'where clause' must be as per primary/secondary index ( if any)
Avoid creation of index as far as possible
Avoid operators like <>, > , < & like % in where clause conditions
Avoid select/select single statements in loops.
Try to use 'binary search' in READ internal table. Ensure table is sorted before using BINARY SEARCH.
Avoid using aggregate functions (SUM, MAX etc) in selects ( GROUP BY , HAVING,)
Avoid using ORDER BY in selects
Avoid Nested Selects
Avoid Nested Loops of Internal Tables
Try to use FIELD SYMBOLS.
Try to avoid into Corresponding Fields of
Avoid using Select Distinct, Use DELETE ADJACENT
Check the following Links
Re: performance tuning
Re: Performance tuning of program
http://www.sapgenie.com/abap/performance.htm
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
check the below link
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
See the following link if it's any help:
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
Check also http://service.sap.com/performance
and
books like
http://www.sap-press.com/product.cfm?account=&product=H951
http://www.sap-press.com/product.cfm?account=&product=H973
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
Performance tuning for Data Selection Statement
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
Debugger
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
Run Time Analyser
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617cafe68c11d2b2ab080009b43351/content.htm
SQL trace
http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f7c454211d189710000e8322d00/content.htm
CATT - Computer Aided Testing Too
http://help.sap.com/saphelp_47x200/helpdata/en/b3/410b37233f7c6fe10000009b38f936/frameset.htm
Test Workbench
http://help.sap.com/saphelp_47x200/helpdata/en/a8/157235d0fa8742e10000009b38f889/frameset.htm
Coverage Analyser
http://help.sap.com/saphelp_47x200/helpdata/en/c7/af9a79061a11d4b3d4080009b43351/content.htm
Runtime Monitor
http://help.sap.com/saphelp_47x200/helpdata/en/b5/fa121cc15911d5993d00508b6b8b11/content.htm
Memory Inspector
http://help.sap.com/saphelp_47x200/helpdata/en/a2/e5fc84cc87964cb2c29f584152d74e/content.htm
ECATT - Extended Computer Aided testing tool.
http://help.sap.com/saphelp_47x200/helpdata/en/20/e81c3b84e65e7be10000000a11402f/frameset.htm
Just refer to these links...
performance
Performance
Performance Guide
performance issues...
Performance Tuning
Performance issues
performance tuning
performance tuning
You can go to the transaction SE30 to have the runtime analysis of your program.Also try the transaction SCI , which is SAP Code Inspector.
1 Always check the driver internal tables is not empty, while using FOR ALL ENTRIES
2 Avoid for all entries in JOINS
3 Try to avoid joins and use FOR ALL ENTRIES.
4 Try to restrict the joins to 1 level only ie only for 2 tables
5 Avoid using Select *.
6 Avoid having multiple Selects from the same table in the same object.
7 Try to minimize the number of variables to save memory.
8 The sequence of fields in 'where clause' must be as per primary/secondary index ( if any)
9 Avoid creation of index as far as possible
10 Avoid operators like <>, > , < & like % in where clause conditions
11 Avoid select/select single statements in loops.
12 Try to use 'binary search' in READ internal table. Ensure table is sorted before using BINARY SEARCH.
13 Avoid using aggregate functions (SUM, MAX etc) in selects ( GROUP BY , HAVING,)
14 Avoid using ORDER BY in selects
15 Avoid Nested Selects
16 Avoid Nested Loops of Internal Tables
17 Try to use FIELD SYMBOLS.
18 Try to avoid into Corresponding Fields of
19 Avoid using Select Distinct, Use DELETE ADJACENT.
Regards
Anji -
How to reduce processing time in case of jms to idoc scenario
hi all,
i am doing jms to idoc scenario.
in this i'm using xslt and graphical mapping.
while perfroming E2E testing the messages are taking lot of time to get processed.
please tell me as how can i reduce this processing time or in short how can i overcome this problem.this is a critical issue in production.
regards
madhuHi,
1. To reduce the processing time for JMS -> IDOC scenario, try to get the Average processing time taken by JMS adapter, IE, IDOC adapter for the messages that are processed so far by going thro the Adapter Audit logs, SXMB_MONI race and Time in WE02 in R/3 system. Calculate this for 5 - 10 messages at different time to get the clear idea of which step is consuming more time. Then it will be helpful to focus on tuning that specific step. If you are using BPM, check the processing time taken by PE.
2. Check the Inbound and Outbound queues used by this interface, if required try to configure Prioritized Queue with more time allocated for this interface in Integration Engine.
3. Check the load on the Integration Server when this Interface messages are getting processed, to understand/ isolate the interfaces which are consuming more processing time and system resources.
4. If this is not in Production try to perform the Mapping/ transformation in graphical mapping itself, it will be helpful to minimise use of XSLT mapping to get better performance.
5. Check if the Archive and Delete jobs are running successfully in the Integration Server, since this will free up the occupied resources in the system.
6. If possible post seperate Forum questions for issues in different Interface scenarios, it will be easy to understand the problem for all of us.
Hope this will be helpful,
Regards,
S.Santhosh Kumar -
How to get elapsed time of the query in form 6i
hi
I used to use " set timing on " in sql to get the elapsed time
set timing on
elapsed time :XX:XX:XX ,
but i dont know how to get it in fom
its really imporant to measure the time elapsed for me cuz i am student an need to get the time
thanx alotregarding to point 1 : u know there are three modes for system ; query, enter_qeury,and normal. when the system is not noraml so it is either query or enter_query , and both are query processing ( as i think) so it the elapsed time . it also by using timer stpos when system finish query ( normal)
why you dont prefer timers ..... ( it important please to explain )
thank you very much Navnit Punj
Edited by: user8652693 on 22/07/2009 07:33 ص -
How to include processing time in the LogFormat in httpd.conf of OAS
Hi,
I want to add processing time parameter in the LogFormat of the HTTP requests in Application server logs file.
i tried to edit the httpd.conf file which orginally is as below
LogFormat "%h %l %u %t \"%r\" \"%{Cache-Control}i\" CC \"%{Cache-Control}o\" %>s %b" common
to
LogFormat "%h %l %u %t *%T* \"%r\" \"%{Cache-Control}i\" CC \"%{Cache-Control}o\" %>s %b" common
But doing so, did not add the Processing time in the GET and POST requests.Although same works for Apache HTTP server.
I want to know how do i add the Processing time attribute in the LOGFormat.
By Default the LogFormat is Common, what are the other possibilities fpr LogFormat.
Please revert.
Regards
AkHi,
1. To reduce the processing time for JMS -> IDOC scenario, try to get the Average processing time taken by JMS adapter, IE, IDOC adapter for the messages that are processed so far by going thro the Adapter Audit logs, SXMB_MONI race and Time in WE02 in R/3 system. Calculate this for 5 - 10 messages at different time to get the clear idea of which step is consuming more time. Then it will be helpful to focus on tuning that specific step. If you are using BPM, check the processing time taken by PE.
2. Check the Inbound and Outbound queues used by this interface, if required try to configure Prioritized Queue with more time allocated for this interface in Integration Engine.
3. Check the load on the Integration Server when this Interface messages are getting processed, to understand/ isolate the interfaces which are consuming more processing time and system resources.
4. If this is not in Production try to perform the Mapping/ transformation in graphical mapping itself, it will be helpful to minimise use of XSLT mapping to get better performance.
5. Check if the Archive and Delete jobs are running successfully in the Integration Server, since this will free up the occupied resources in the system.
6. If possible post seperate Forum questions for issues in different Interface scenarios, it will be easy to understand the problem for all of us.
Hope this will be helpful,
Regards,
S.Santhosh Kumar -
How to get the Time Stamp if we use User Status
Hi Gurus,
We used User Status to control several Orders. Now we are required to get the "time stamp" when we change from one status to another, is that information available in the system?
If not, how do we get the time when a user status is changed from one to another?
please advice,Hi,
To check such kind of changes you have to follow below path,
Go to Status tab (Blue Ikon) --- >Extra -> Change Documents-> All- --- > Choose All Changes
SAP note 390635 provide the possibility to write change records for process and production orders as modification.
please refer this link also,
[Link|https://www.sdn.sap.com/irj/sdn/profile?userid=3781605]
Regards,
R.Brahmankar
Maybe you are looking for
-
Syncing two iPhones with one iTunes account, archive and install
I had a blue screen and had to archive and install. I re-synched my iPhone and at that time put my iPhone contacts in my address book with my group name, that I just created. I created a group for her and now want to re-synch her iPhone with my compu
-
CSA 5.1 causes significal slow down on windows 2000 server
We have recently installed CSA 5.1 and agents on a bunch of windows servers. All the shims and enabled and only the default policy agents for windows is enabled. Applications which does FTP and moves files from one folder to another etc are taking si
-
Hi I contacted BT over live chat last week to turn off Interleaving and was told that it would be done within 5 days but it has not happened. I am hoping the mods can help me with this. The connection has been solid since I fitted the i-plate, now I
-
Extending the range of my Extreme n Network with an Express n Airport
Hello, I've been reading some of the questions but couldn't find my specific situation, so here I am posting again. Sorry for the double-post. I currently have an AEBS 802.11n acting as my main base station and connected to our DSL modem. In a differ
-
Iphone in Emergency screen mode !!!
After restoring, my phone has gone to emergency mode, how can i bring it back to normal, when i try to restore it gives me error messages.