Program runtime information
Is there a way to (from inside the own class) know amount of memory and cpu usage the class is consuming ?
thanks
In Java, as far as I know , No.
But, in transact SQL Server 2000, yes there are.
Similar Messages
-
To see the runtime information.
Hi expertz,
I am executing a adhoc report in the browser after running some time it is saing time out error and process is getting terminated.Is there any functionmodule or programm or T code to see the runtime information of the query to find what exactly happend,Due pointswill be given,... it is urgent please.
reards,
Daniel.Hi Daniel,
To collect the information about the Database time, OLAP Time, Front End time, No. of records selected /transfered etc in the following three ways:
1.By analysing the contents of table " RSDDSTAT"
2.By using T-codes ST03 or ST03N
3.By implimenting BW Statistics Business Content - you need to install, feed data and through ready made reports which for analysis.
You can go to T-Code DB20 which gives you all the performance related information like
Partitions
Databases
Schemas
Buffer Pools
Tablespaces etc
Please assign points if it is useful.
Regards,
Rahul -
How do I cancel my purchase, remove the program an information in order to receive my money back?
Hi Technoterri,
You can manage your account by logging into adobe.com and taking the following steps:
*Sign in the top right corner using your Adobe.com credentials
*Click on your name (same location) and select ‘My products and services’
*From there you can check on your status, log in/account info, etc.
Let us know if this helps!
Kind regards, Stacy -
Hello XI Experts,
I've got one question: Is it possible to obtain a runtime information in Business process ? I have created alerts where I use container to add dynamic text from payload but I also need to add information on which system this alert was triggered (dev, int, prod). I need information from SOAP Header, Runtime. Does anybody now how to do it?
Regards,
PavolMaybe the solution in this thread will help,
Availability of System id value in a BPM
<i> found a neat way of resolving this issue and thought I would share with you both.
I created a user-defined function and put the following lines of code....works like a charm!!
String user_login_id = System.getProperty("user.name");
return user_login_id.substring(0,3);
This returns system id since the system users are always
xi0adm / xc0adm or xp0adm.</i>
Regards
Bhavesh -
Runtime information about EJB on weblogic console
Hi All,
I am using WLS6.1 sp2 on Redhat Linux 7.2.
The runtime information for an EJB as displayed on weblogic console looks very
odd. Could somebody clarify the meaning of the following mbean info?
Beans in Use Count(BeansInUseCount)
Cache Beans Current Count(CachedBeanCurrentCount)
For one of my entity EJBs, I see
BeansInUseCount=30678,CachedBeanCurrentCount=3674578
I have max-beans-in-cache=1000 for all entity beans and the number of records
for this entity EJB in database is less
than 10. I dont understand why the BeansInUseCount is so high?
This number looks very suspicious. Is this a bug or maybe a memory leak?
Any assistance will be greatly appreciated.
Thanks,
AbhayPlease transfer to EJB Forum...
-
I am trying to get a list of all the Maps, Sources and Target tables and the number of rows processed. What is the best way to get this information?
Thanks in advance for your help.Runtime Audit Browser.
Bye
Detlef -
Java programming - Runtime class
hi
I am not able to copy a file using Runtime class in java.lang
i have used
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("copy c:/venk1/pmrpay.jar F:/");
pr.waitFor();
when running the program i am getting this error message:
create process: copy c:/venk1/pmrpay.jar F:/ error = 2
kindly help me
venkatThere is no copy.exe on your system. Copy is command interpreted with command.com. So you need to try something like
Process pr = rt.exec("cmd /c copy c:/venk1/pmrpay.jar F:/");
See
cmd /?
for details... Hope this will help you! -
Runtime Information about Drilldown
Hello Experts,
i had the following question. Ist there an possibility to get information about the drilldown of an Web Query at runtime?
In my Query there is a calculated Keyfigure. the normal drilldown is Year. The Keyfigure counts the Days in the Year. If the User changes the drilldown to e.g. Quarter or week the keyfigure shold calculate anothe value. If there is any possibility to know what drilldown ist selected i can calculate this keyfigure in an Exit.
BG
GüntherGUnther,
If you are on BI3.x then you could have a table modifier which captures the drilldown characteristic and accordingly changes the key figure - but this would mean that you will have to write your own code for updating the field.... -
Access Process Chain Runtime Information
Hi, I'd like to add an ABAP program to the end of a process chain. I'd like the ABAP program to be able to tell what Process Chain is currently being run and what Log ID is currently open or being written to. Any Ideas how to do this?
Thanks!
Nevermind
I think this would be where a custom process type would be appropriate..
Thanks!Hi Kenneth,
The table RSPCLOGCHAIN would give you the information regarding which chains are running/completed/failed etc.
The table RSPCPROCESSLOG would give you, which process step in the process chain is actually executing.
Once you know the Chain Name, for which you want to get the status, use the following function modules
RSPC_API_CHAIN_GET_STATUS
Gives you if a chain is running/completed/failed.
RSPC_API_CHAIN_GET_LOG
Gives you a detailed log of the process chain(Each steps)
The tables mentioned above would give you the following information
R Ended with errors
G Successfully completed
F Completed
A Active
X Canceled
P Planned
S Skipped at restart
Q Released
Y Ready
Undefined
J Framework Error When Ending (e.g. Subsequent Job Missing)
Regards,
Praveen. -
DAQmxReadCounterF64() timeouts blocking program runtime
Hi,
I have a PCI-7342 board connected to a MID-7652 box that is being used to control a servo motor on a rotary axis with an encoder. I also have a PCIe-6323 board that is used to read a quadrature linear encoder on the counter using DAQmx and I am programming in C. As the axis rotates, it passes breakpoints and sends a trigger signal in order for the counter to latch a reading from the quadrature encoder.
The DAQmx is set up using the following functions:
DAQmxCreateTask(, &thHandle);
DAQmxCreateCILinEncoderChan(thHandle, "Dev1/ctr0", , , , , , , , , );
DAQmxCfgSampClkTiming(thHandle, "/Dev1/PFI0", , , , );
DAQmxStartTask(thHandle);
This sets up the counter to be latched every time a signal arrives at the PFI0 terminal. I have connected the breakpoint output from the MID-7652 box to PFI0.
The rotary axis is configured with modulo breakpoints using the following functions:
flex_configure_breakpoint(, , NIMC_MODULO_BREAKPOINT, NIMC_RESET_BREAKPOINT, );
flex_load_bp_modulus(, , 250, );
flex_load_pos_bp(, , 0, );
flex_enable_breakpoint(, , NIMC_TRUE);
Due to modulo breakpoints, I have to call flex_enable_breakpoint(, , NIMC_TRUE); every time a breakpoint occurs in order for the next breakpoint to be able to trigger.
The problem I have lies in the next stage. I want to call the read function which will wait for incoming trigger on PFI0. So I call the function:
DAQmxReadCounterF64(thHandle, -1, dTimeOut, , , , );
Next in my code I start the motion of the rotary axis
flex_start(, , );
do
flex_read_axis_status_rtn(, , &usAxisStatus);
usBPStatus = !((usAxisStatus & NIMC_POS_BREAKPOINT_BIT)==0);
if (usBPStatus)
flex_enable_breakpoint(, , NIMC_TRUE);
} while ( !(usAxisStatus & (NIMC_MOVE_COMPLETE_BIT | NIMC_AXIS_OFF_BIT )));
But this line is never reached because the DAQmxReadCounterF64() function keeps waiting for an input at the PFI0 terminal and blocks the program from running and times out, returning an error.
I have tried rearranging the order of the functions by calling flex_start(); first and then DAQmxReadCounterF64() before the do-while loop.
The problem with this method is that the DAQmxReadCounterF64() function blocks the runtime and so the second breakpoint is never enabled. The function again times out and returns an error.
I don't want to set it to indefinite or my program will wait forever and not do anything. Is there a way around the DAQmxReadCounterF64() timeout? Or a way to re-enable the breakpoints?Duplicate
John Passiak -
hello....I need some information regarding the CR2008 Runtime files...
I have a client who is in the process of testing CR2008 reports thru a Visual Foxpro Application.
They would like to know what is/are the runtime file name(s) are; are there any parameters necessary
and if you have any instructions on setting the runtime up on various pcs...
If you could please supply that information or point me to a document that fully explains the Cr2008 runtime
and the installation process, passing any parameters if they are necessary,
it would be greatly appreciated..
thank youUsing CR 2008, I'd assume you are using the Crystal Reports SDK for .NET and not the RDC as the RDC was retired in CR 2008. To distribute the runtime, you will have to use the merge modules from here;
https://smpdl.sap-ag.de/~sapidp/012002523100009159092009E/cr2008sp2_mm.zip
and create your own setup project using Wise, InstallShield, etc.
Alternatively, you could use the msi from here;
https://smpdl.sap-ag.de/~sapidp/012002523100009159002009E/cr2008sp2_redistinstall.zip
Ludek -
Accessing Runtime Information - ERROR - HELP
Hi all,
I am trying to access the runtime MBean with the sample code given in the WebLogic online document
Here is the part of the code
try {
System.out.println("\n----Trying to access runtime mbean \n");
mbeanSet = home.getMBeansByType("ServerRuntime");
mbeanIterator = mbeanSet.iterator();
// Comparing the name of the server in each ServerRutime
// MBean to the value specified by serverName
while(mbeanIterator.hasNext()) {
serverRuntime = (ServerRuntimeMBean)mbeanIterator.next();
if(serverRuntime.getName().equals(serverName)) {
System.out.println("Found the serverRuntimembean: " + serverRuntime + " for: " + serverName); System.out.println("Current state: " + serverRuntime.getState() ); System.out.println("Stopping the server ..."); serverRuntime.shutdown(); System.out.println("Current state: " + serverRuntime.getState() ); } }
} catch (Exception e) {
System.out.println("Caught exception: " + e); }
When I try to run the program I am getting the following error.
<Aug 26, 2004 3:48:33 PM PDT> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -54677950900
68647408, local class serialVersionUID = 1081892073854801359
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -546779509006
8647408, local class serialVersionUID = 1081892073854801359
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:33)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:209)
at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:232)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:733)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:742)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:682)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:618)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:282)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>
Caught exception: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
[weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -5467
795090068647408, local class serialVersionUID = 1081892073854801359]
Did anybody come across this kind of error? Please let me know. Any help is appreciated. Thanks!
-PraneethaPraneetha,
The client version of ObjectName is different from the version on the
server side. Make sure you have the same class version.
Thanks,
-satya
Praneetha Sabhanayakam wrote:
Hi all,
I am trying to access the runtime MBean with the sample code given in the WebLogic online document
Here is the part of the code
try {
System.out.println("\n----Trying to access runtime mbean \n");
mbeanSet = home.getMBeansByType("ServerRuntime");
mbeanIterator = mbeanSet.iterator();
// Comparing the name of the server in each ServerRutime
// MBean to the value specified by serverName
while(mbeanIterator.hasNext()) {
serverRuntime = (ServerRuntimeMBean)mbeanIterator.next();
if(serverRuntime.getName().equals(serverName)) {
System.out.println("Found the serverRuntimembean: " + serverRuntime + " for: " + serverName); System.out.println("Current state: " + serverRuntime.getState() ); System.out.println("Stopping the server ..."); serverRuntime.shutdown(); System.out.println("Current state: " + serverRuntime.getState() ); } }
} catch (Exception e) {
System.out.println("Caught exception: " + e); }
When I try to run the program I am getting the following error.
<Aug 26, 2004 3:48:33 PM PDT> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -54677950900
68647408, local class serialVersionUID = 1081892073854801359
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -546779509006
8647408, local class serialVersionUID = 1081892073854801359
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:33)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:209)
at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:232)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:733)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:742)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:682)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:618)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:282)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
Caught exception: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
[weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -5467
795090068647408, local class serialVersionUID = 1081892073854801359]
Did anybody come across this kind of error? Please let me know. Any help is appreciated. Thanks!
-Praneetha -
Program ZZCUSOBJ - Information about custom repository objects
Hi,
Does anyone have the source code of the program ZZCUSOBJ? It is a program used in upgrades to gather information on customer repository objects.
Thanks in advance. Regards,
GerardHi Gerard,
because the program name starts with Z* (and even more ZZ*!), it's a customer specific program.
Sometimes SAP delivers some additional reports via OSS and customers implement them locally as Z-report - but otherwise that's individual and not standard.
Ask a user of the customer, at which you have seen it first.
Regards,
Christian -
C program: Runtime error from GetStaticMethodId()
I am new to Java and need help with .....
I want to call a java method (native) from legacy C code.
The java code has to return a Hashtable to the C code.
My java works and I wrote another java file to call it. That
also works fine and I can display my new Hashtable in
the calling java code.
However in my calling C code I get a runtime error when
executing mid2 = GetStaticMethodId() // mid2 returns 0
I believe the problem is in the method signature. If I
make it an int method, it runs and returns an int
but I want a hashtable to be returned.
Using javah RMHash, produces RMHashData.h with nothing useful in it.
My environment is: NT, jdk1.3, VIsual Studio cl.
I hope someone can help me.
Sample java code: This runs OK stand alone or called
from another piece of java code.
import java.util.Hashtable;
import java.io.*;
import java.util.*;
public class RMHashData
public RMHashData()
public static Object getMasterData()
Hashtable hash = new Hashtable(20);
int rtnInt = 6;
hash.put ("1050", new String("AAAAAA"));
hash.put ("1051", new String("BBBBB"));
hash.put ("1052", new String("CCCCCCCCC"));
return hash;
public static void main(String[] args)
int RtnInt;
Hashtable RtnHash;
RtnHash = (Hashtable)RMHashData.getMasterData();
Sample C code: (I had to retype this so cut out superfluous code)
#include <stdio.h>
#include <jni.h>
main()
JNIEnv *env;
JavaVM *jvm;
JavaVMOption options[4];
JavaVMInitArgs vm_args;
jint res;
jclass cls;
jmethodID mid, mid2;
jstring jstr;
jvalue result;
jobjectArray args;
char classPath[256];
char libraryPath[256];
vm_args.version = JNI_VERSION_1_2;
/* set the options to pass to the VM */
sprintf(classPath, "%s", "-Djava.class.path=c:\\data\\java_dev\\src");
sprintf(libraryPath, "%s", "-Djava.library.path=c:\\jdk131\\lib");
options[0].optionString = classPath;
options[1].optionString = libraryPath;
vm_args.options = options;
vm_args.nOptions = 2;
vm_args.ignoreUnrecognized = JNI_FALSE;
/* Create the Java VM */
res = JNI_CreateJavaVM(&jvm, (void **) &env, &vm_args);
cls = (*env)->FindClass(env, "RMHashData");
// *** Getting the main method works
mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
// *** Getting this method FAILS
mid2 = (*env)->GetStaticMethodID(env, cls, "getMasterData", "()[Ljava/lang/Object;");
if (mid2 == 0) // ***** mid2 is 0
fprintf(stderr, "Can't find Prog.getMasterData\n");
return 1;
result.l = (*env)->CallStaticObjectMethod (env,cls, mid, args);
// Then comes more fun to pull apart the hashtable...Bill, Thank you very much - that was it!!!!!
Not sure about your comment...
Comment: Why don't you just return a Hashtable?The line: return hash;
in getMasterData() does exactly that.
If you mean my declaration of the method:
public static Object getMasterData()
where Object should be Hashtable.
I thought the type in the declaration had to match the
JNI call - CallStaticObjectMethod(). I notice there is no
CallStaticHashtableMethod(). Well that is my guess and I only started looking at Java a few days ago and have lots to learn. Thank you again.
Ron... -
Installing program runtime error
I am trying to install updated driver for HP printer photo smart c7200 series. I get a runtime error. I have downloaded the driver several times and it gets the same error every time. When I try to activate the printer and fax app it says it can't find
the printer but gives no setup function. HELPThat's your DISCover Drop & Play System Executable.
What make and model of PC do you have? (It often comes preinstalled on PCs, anddifferent PC manufacturers may be running slightly different versions of the DISCover engine. Want to check at your manufacturer's webdite to see if there are any updates available for your variation.)
Maybe you are looking for
-
PO price changes after partial MIGO
Dear All, I have created a PO for 100 Pcs with Rs 100 per Pc & have done GR for 50 Pcs. After 10 days i will get the remaining 50Pcs but the price has gone upto Rs 110 due to variations in market. So accordingly i changed the price in PO to Rs 110 &
-
I login under solaris 11,I enter root as Username,After I enter password,it pop a window: Roles can only be assumed by authorized users then pop another window: Permission denied Why I can't login as root? How can I login as root? Thanks
-
High data transfer cause harddisk to crash on BXmaster board
hello I'm using a BXmaster board (MS6163) with a 80GB Seagate 7200@100b/s harddrive connected to the promise 66IDE port. Sometimes I encounter a harddisk crash when previewing an AVI file which mainly I did in the video editing work. When previ
-
Loading XML - API to compress XML
I'd like to compress XML files before loading them into 8i (need smaller file sizes for quicker loading with SQL*Loader). Does Oracle provide an API to reduce the file size or compress the DOM of XML documents? Any suggestions for quick data loading
-
I am using single guitar amp with loopback and an Apogee Gio. The inputs and outputs are all working fine, but loopback isn't. When I try to record, loopback isn't recording, though the playhead is moving. What am I doing wrong?