How to run jmap and jhat in Java 1.4
Hi All,
I need a histogram to analyse the heap memory details for the weblogic managed servers in a production environment. I was planing to use the *jmap -histo PID* command to analyse it. But my java process is running on v1.4.2.10. I have heard jmap is only available from JDK 1.5 onwards. I cannot upgrade the java version of the application.
Q1. Is there any way to get jmap for 1.4. If yes, can someone please provide a link?
Q2. This might be a little naive but is it possible that i install java 1.6 in another location in the system, run jmap and jhat in that and use the PID of the current JVM process which i want to dump?
Q3. Just another generic question - is the heap dump of jmap portable across all OS and Java verisions for analysis with jhat?
Thanks
Hi bshannon,
I had tried with the protocol names you given, but same is the result, can u tell me i m giving only protocol, host, user, password.
Is this sufficient to connect or i need to supply all the params like url , root, verbose, pattern, etc.
I m getting the access to server in other programs. Since our server doesn't support imap. so i tried like this
E:\downloads\javamail-1.4\demo>java folderlist -P pop3 -H email.abc.com -U username -P password
Exception in thread "main" javax.mail.NoSuchProviderException: Invalid protocol: null
at javax.mail.Session.getProvider(Session.java:431)
at javax.mail.Session.getStore(Session.java:530)
at javax.mail.Session.getStore(Session.java:510)
at javax.mail.Session.getStore(Session.java:496)
at folderlist.main(folderlist.java:119)
Similar Messages
-
How to run a jar file using Java application.
Hi all,
I know that jar file can run using the following command, using the command prompt.
java -jar jar-fileBut I don't know how to run that command through a Java code. Hope it's clear to you.
So can you please explain how can I do it.
Thanks,
itsjavarayon.m wrote:
The solution given by ropp appears to have nothing to do with what you asked about.Ok sir, I got the point.
I've try a test as follows. But it doesn't give any output. Even not an exception.
try {
String[] temp = new String[]{"java", " -jar", " MainApp.jar"};
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(temp);
int exitVal = proc.waitFor();
System.out.println("ExitValue: " + exitVal);
System.out.println("Temp_Values");
catch(InterruptedException ex) {
System.out.println(ex.getMessage());
catch (IOException ex) {
System.out.println(ex.getMessage());
}I've debug and see, but the exitValue is even not exist at run time. Can you tell me where I'm going wrong. -
How to run a remote application (Non Java) from a Java program
Could you please tell me how to run a remote application (Non-Java) from a Java program without using RMI. Please tell me know the procedure and classes to be used.
Cheers
Ramwhat do you mean remote application.In the other pc or in your pc just apart from you application?
If the application is in your pc,the method which the upper has mentioned is
a good one!
But if the application you want to run is not in your computer,the method can't do. And you can use socket with which you can build an application listening some port in the pc which contains the application you want to run .When you want to run that application ,send the Start_Command to the listening application.Then listening application will run the application with the help of the method the upper mentioned. -
How to run mrp and capacity leveling through heuritics.
Hi,
How to run mrp and capacity leveling through heuritics.
What are the setps required for production planning run this thing in the heuritics in pp/ds?
Regards,
SunilSunil,
APO PP/DS doesn't have a 1-to-1 match for MRP/Cap levelling per se. There are, though, a limitless number of ways to achieve the results you want.
Start with a basic PP planning MRP - SAP_PP_002, which will should create all necessary planned orders
Then try a DS heuristic to schedule your orders according to capacity. Schedule Sequence SAP001 is a good starting point. This can be used to schedule your cap relevant work centers such that they fully load the capacity available, similar to cap levelling.
Rgds,
DB49 -
How to run BW reports since BI JAVA is not available in 7.4.
We have Upgrade our BW 7.0 to BW 7.4 on HANA, How to run our BW reports since BI JAVA is not available in 7.4.
My scenario: Producer Portal (BW portal ) we are creating/marinating Portal objects ( Folders, roles, work sets ……etc.), which replicate in Consumer portal (EP portal) via Federation framework. In-fact its abstraction layer, not hosting any Portal content physically but giving a unified enterprise access to business. The actual content and execution of users requests occur on Producer portal itself.
We have to maintain two portal in this case (consumer & producer).
In BW 7.4 version, dual stock is no longer supported. In order to maintain the federation paradigm have to purchase new license & servers for java stack. What about if we directly integrate our BW reports in EP portal ? what would be draw back or issues in this approach in terms of durability, maintenance administration efforts……….etc . Please suggest us the best design solution for me. Need expert opinion.
Now it looks like extra layer (Standalone JAVA stack) to maintain & host? Agree or no?
Is federation still have worth or have some else new SAP concept. ?
Thx,
JameelHi Nawab,
1
Of course, do additional users and activity also consume ressources of the EP 'machine'.
If you'll run in performance leak, is depending on the special situation. And of course the AS Java can be tuned/optimized for higher workload.
Maybe if you are on a virutualized environment, it's easily possible to increase the ressources of the machine/s - or its possible to add additional java-nodes on separate servers...
Lots of possibilities to increase the workload-power if needed...
From my personal opinion, I usually recommend a separate BI-Java instance - not shared with other funcitonality.
2
Not sure if I get you right.
There are two technical options to run a ABAP+JAVA Stack on one server.
In one SAP instance - then ABAP and java processes are controlled in one framework. --> This option is not possible any more under 7.4
in separate SAP instances - then the two SAP systems are running on same host but each has its on framework/instance running. It is similar to running on separte servers.
Licensing:
From an SAP view, there is no additional licensing cost for the separte Java Stack!
But for sure, if you set it up on a separate server you may have additional cost for OS licensing, VMware, etc. - depending on your infrastructure...
My recommend, if you plan to move with that stuff to HANA:
Assuming you have 2-system landscape - DEV and PRD.
Assuming you are in a virtual environment like vmware.
Currentently you have two servers - on each a DualStack BW incl. current database on it.
1. Set up four new machines with half sizing as you currently have.
2. Split the DualStack and run the two new Java stacks on the new servers.
3. Migrate your BW ABAP to HANA
Set up the ABAP Application servers for your BWonHANA on the other two new servers.
4. Kill/Recycle the two now free servers.
Regards,
Stefan -
How to run unix shell script from java web applet
hi all
i have created one java applet. my apache web server is on unix server.
i have created one shell script in same directory where my .class and .htm files reside...
how to run this shell script from applet? it should search this .sh file on server and not on the client browser machine...
thanks in advanceI suppose you could make the shell script into a CGI, configure the server to execute CGIs, and then make the applet open the URL of that CGI.
-
How create new database and table in java db and how get java db backup
hi master
sir i use stuido creator
sir please give me idea how i create new database
and how create new table and view in this new database
and how get this database backup
how i give this databae backup to isp for deployment
please give me idea with step
thank
aamirCreate your own Value Object (Data Transfer Object) in Java with a structure similar to this and map the fields returned from the database to the fields of that object (preferably using SEtT methods).
Hope this helps. -
Plz Tell how to run videos and Google play store i...
Hi ,
Plz Tell how to run videos of facebook and dailymotion and Google play store in Nokia asha 230 dual sim .
Plz tell i am Waiting for ur Reply .
Thanks
Birdwatcher89The Nokia Asha 230 does not run Android as operating system, therefore, the Google Play Store does not work. The operating system of your phone relies on a video streaming protocol called RTSP. Dailymotion does not support that anymore. I cannot comment about your Facebook issue. Perhaps someelse can.
-
How to run explorer and upload to support files
Hey Unix gurus
i got an issue with one of our T2000 server and when contacted sun support told us to run the explorer and upload to support files,so that they can determine the problem and fix it.can anyone help me how to run the explorer and upload the files to sun support.
I truly appreciate your assistance
Regars
etc.You can run the explorer using below command /opt/SUNWexplo/bin/explorer
and the output gets stored in gz format in /opt/SUNWexplo/output directory
To upload the explorer you can use the below link
http://supportfiles.sun.com/upload
Hope this helps -
How to run jsp and servlet using JBOSS server
Dear Friend,
I have JBoss application server and Eclipse id
now i want to run JSP and Servlet but i am not getting the place where to place my servlet class file to run it .
before that i run jsp and servlet using tomcat5.0 but in that i place my servlet class in WEB-INF/classes folder and do corresponding entry in web.xml file and run it through browser.
now i want to use JBOSS how it is possible
PLZ Help meIs the servlet class defined in a package.? If servlet class package is servlets., copy the servlet to
WEB-INF/classes/servlets directory. -
How to Run a simple servlet "HelloWorld.java" in JBoss 3.0 ?
Dear all,
I am a beginner and I want to run a simple "HelloWorld.java" servlet .
I need to use JBoss 3.0 .
After I run this simple servlet, I need to use EJB-Servlet-JSP to implement MVC .
I have the servlet code and I am able to compile it.
But I dont know how to proceed as to where to put the class files , where do I specify an alias for my servlet and what modifications I need in Web.xml,Jboss.xml,Application.xml ?
I do not anything about tools like Ant or Xdoclet so need to proceed without them.Please alos let me know where I can fond complete info about Ant and Xdoclet .
Thanx in Advance,
SujithI am not sure of the JBoss package that you are using. If you are using the JBoss-Tomcat package, here's the solution. Create either a .war file or create a directory with the name <your-webapp>.war under <jboss-root>/server/default/deploy. If you are creating a war file, you have to place that war file in the same directory. JBoss-Tomcat will keep looking at this directory for new files or updates to files and deploys/re-deploys as required.
The contents of the war file should be something like this.
WEB-INF - directory
WEB-INF/classes - your servlet classes
WEB-INF.web.xml - your configuration. Here you can specify the servlet name, class and URI mapping.
Now, you can call your servlet using the browser in this way: http://localhost:8080/<your-webapp>/servlet/<servlet-alias>. Here the <your-webapp> is the prefix of the .war file.
Resources:
Ant - http://jakarta.apache.org/ant/
Xdoclet - http://xdoclet.sourceforge.net/ -
How to run the perl script from java ?
Hi , I need to run the pearl script from the server and to get the result of the script thro' java using SSH
Is there any 3rd party SSH API in java ?
Please help me out
thanks in advance
karthikThis seems like a very strange thing to want to do.
What is the perl script doing?
Do other programs (not some shell script) access this server-side perl script from a different machine?
If so how do they do it?
What currently triggers the perl script to execute?
What currently handles the output from the perl script?
If you can answer these questions (and understand the answers) you should be able to come up with a different approach to this.
You do not really want to call a remote perl script from a Java program, you want to achieve the effect you think that would have if you could do it.
So find the answers to the above questions, write them on 3" x 5" cards and lay them out on your desk.
What flow of control needs to happen? Which piece of code needs to produce or consume which piece of data?
If that fails, ask you self or who ever is making you do this what are the use-cases?
If you do not know what use-cases are or do not understand them well enough try reading
Use Case Modeling (The Addison-Wesley Object Technology Series) by Kurt Bittner and Ian Spence (Paperback - Aug 30, 2002)
http://www.amazon.com/s/ref=nb_ss_gw/002-7908514-4043267?url=search-alias%3Dstripbooks&field-keywords=use+cases&x=0&y=0
It is a short and easy to read book on the subject and also one of the best.
You MUST understand WHAT you are trying to achieve before you can decide HOW you are going to achieve it. -
Sorry if i sound foolish how to run an applet through a java application
I am into java from last one month ank keep on exploring it in the want to
recently i created a application cum applet in the same class like
applet is doing its own task and there is a main method in the code
that does entirly different task lets assume displaying *'s on the dos prompt the program is getting complied and belive it its running as desired
but the only problem that i m facing if i use appletviewer Myclass.java
only the appletprog is displayed
and if i run java Myclass than only dos task is done
may be it is sounding foolish for most of you but if i can get a way
which will help me in excecuting only one of it and both of them run succesfully
it tryied different ways to do it but was not succesful
please do not get irreated if its bizzered but if you really have a solution for it .i will appreciate it
thanking youYes you can run an Applet from an application. The magic bit is providing an AppletContext and AppletStub!
Here's how you start it:
wpa = new WayPointsApplet(this);
new AppletWrapper(wpa, 380, 320);Here's the class definition: (includes code for my application that can be ignored.
// Define a wrapper class for the applet
class AppletWrapper extends Frame implements AppletStub, AppletContext {
Applet applet;
// Constructor
AppletWrapper(Applet a, int x, int y) {
applet = a;
setTitle(a.getClass().getName());
setSize(x, y);
Dimension ss = Toolkit.getDefaultToolkit().getScreenSize();
setLocation((ss.width-x)/2, (ss.height-y)/2);
add(a, "Center");
a.setStub(this);
// Trap window closing
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
// Test if Write left undone before exiting???
if(WayPoints.wpa != null) {
if(!WayPoints.wpa.okToExit())
return; // Ignore
applet.stop();
applet.destroy();
if(WayPoints.debug || WayPointDefs.plot_debug) {
SaveStdOutput.stop();
System.exit(0); // EXIT Program
}); // end WindowListener
a.init();
show();
a.start();
} // end constructor
// AppletStub methods
public boolean isActive() { return true; }
public URL getDocumentBase() { return null; }
public URL getCodeBase() {
return WayPoints.currDir;
public String getParameter(String name) {
if (name.equalsIgnoreCase("DEBUG")) {
if (WayPoints.debug)
return "YES";
else
return "NO";
if(name.equals("PLOTDEBUG"))
return (WayPointDefs.plot_debug ? "YES" : "NO");
if (name.equalsIgnoreCase("SERVER"))
return "NO";
return "";
public AppletContext getAppletContext() { return this; }
public void appletResize(int width, int height) {}
// AppletContext methods
public AudioClip getAudioClip(URL url) { return null; }
public Image getImage(URL url) { return null; }
public Applet getApplet(String name) { return null; }
public Enumeration getApplets() { return null; }
public void showDocument(URL url) {}
public void showDocument(URL url, String target) {}
public void showStatus(String status) {}
} // end class AppletWrapper -
How to run exe file from inside java
I wan to run an exe file from inside java code. How can I do it?
ThanksHi Oakam
This is very simple. Just go through the given code below
in place of FILEANDPATHNAME just give the exe's path and name
Note :- adding ".exe " is not necessary
public class exep
public static void main(String args[])
Runtime r = Runtime.getRuntime();
Process p = null;
try{
p = r.exec("FILEANDPATHNAME");
catch(Exception e)
Give ur feedback
Thanx
Ottran -
How to run QT and Photoshop at same time?
Hi there, does anyone know how I can keep BOTH my Photoshop file windows AND a Quicktime movie open and running at the same time. I am trying to follow a set of QT tutorial movies that I downloaded from a podcast (and I've also tried using a Photoshop Tutorial CD adn same thing happens). The problem is when I try to follow along by having a Photoshop file open, the minute I click on the QT all my extra Photoshop windows (layers, brushes, history, etc) disappear, leaving just the file. This is no good because what I'm trying to do with the tutorial is to duplicate what they are doing in those windows. Of course when I click back into Photoshop they reappear but by this time the QT movie has raced ahead and the minute I go to pause it .... Photoshop goes again ... is there a way to keep all windows to both applications visible ?
Short of using a second monitor (mirror) there are a few tricks you could try.
Open the QT file and shrink the display size. You can do this by dragging the "grow" window (lower right corner) or using keyboard shortcut Command-0 (half size).
Adjust the Photoshop window to a smaller size and arrange the toolbars so you can "view" the underlying QT file.
Next is to keep your hands off the mouse (except in Photoshop).
The spacebar will start and stop playback of the QT file. Use the arrow keys (right and left) to "step" through frames.
Your workflow might be something like this:
Begin the QT file and pause it using the spacebar. Command-Tab (tab key) to switch to PS. Review the work and switch again via Command-Tab.
It will take some patience and practice to get the right combinations.
You can also gain some screen "real estate" by setting your display size to the highest possible settings. System Preferences/Displays is where you'll find these options.
Maybe you are looking for
-
Re-write numerical page numbers to roman numerals for an introduction?
Hi there everybody, I've been attempting (for some considerable time!) to typeset and format a book. The book needs to have roman numerals running from the first title page (which is in reality left blank through using a secondary master page without
-
Online Backup of supported Linux VM on Hyper-V 2012 R2 / SC DPM 2012 R2
Hi, I'm trying to set up a lab environment: Win 2012 R2 with Hyper-V running 2 Linux Machines: Linux2 - CentOS 6.4 with manually installed Linux Integration services 3.4 Linux3 - CentOS 6.4 without LIS (should be already included in CentOS) Another m
-
Display won't go to sleep (imacg5)
So the screensaver will kick in when there's no activity for XX minutes, but the screen won't sleep after YY minutes like it's set to in "Energy Saver" I wouldn't mind it so much if I could enable an active screen corner to sleep the display, but I d
-
Recently upgraded to Mavericks... was working with Pages documents created with previous OS ... Pages is now frozen and I don't dare force quit and loose my old documents. How can I "thaw".... unfreeze Pages? Have several pages windows open that I
-
Best practise for zone ZFS backups
We have an M5000 server that will eventually have at least 40 zones configured. The zone root and data files will be on ZFS. There is a requirement to run daily and weekly backups. We also have Netbackup as an enterprise backup system. My plan was to