How can I use Mission Control and Flight Recorder with a JavaFX bundled EXE - deployment

I would like to profile my JavaFX application once it's been bundled and deployed out as an EXE.
I am not sure how to start the JVM with the needed options on the local machine.
I am just using this in development to see what the memory footprint looks like.
Once bundled I have "myapp.exe" which I double click on - I would like to profile from there.
Thanks!

When running flight recorder, the VM will prompt to enable it on the local VM - so you can activate it from the Mission Control VM.

Related

Is there a way to run an IDE like VSCode from a cloud instance?

I know that with R you can run RStudio as a browser instance directly from a server/cloud instance, so you access the IDE via browser, and that IDE has access to files/data available on that instance (similar to what Jupyterlab does).
Similarly i wonder if there is a way to run VSCode (or some other full feature IDE) as a browser instance on something like a google dataproc, so instead of using Jupyter to run code and access data, you would use the IDE.
I realize there are ways to run a local instance of an IDE and connect to a server/cloud instance, but in some cases these connections are blocked by firewalls and you have no way of running code on the instance other than via browser/jupyter, so i was wondering if there was some other way to do this.
As #guillaume blaquiere suggested :
Cloud Workstation is the brand new feature is designed for that
Fully managed development environments built to meet the needs of security-sensitive enterprises. It enhances the security of development environments while accelerating developer onboarding and productivity.
Access secure and fast development environments anytime via browser or local IDE
Enable administrators to easily provision, scale, manage, and secure development environments
Customize development environments with your preferred IDE and through custom container images

VS Code User settings reset when connecting to a VM using ssh

I am used to using VS Code to work on projects locally on my (Windows) laptop. However, for a new project I'm working on, I need an Ubuntu VM, which I installed with VM Box. The issue is that developing directly in the VM is not as seamless as I would like it to be, which is why I want to connect to the VM remotely from my laptop.
I was able to connect to the VM, but all my VS Code User settings were seemingly reset or absent for the remote session. All my configurations in the settings but also the extensions were gone. If I open a local window, the settings are still there, but not in the remote session.
I get that it might be useful for virtual environments and things like that, but I don't want to have to copy all my user settings and reinstall manually all my extensions that I will use regardless of the project.
Is there any way to use my user settings for remote sessions as well?

Start & display application's GUI from a headless Windows VM?

User clicks on a desktop icon that looks like the icon of the application
A script gets executed that starts a headless Windows VM if it isn't already running, or starts the application on it, if it doesn't run either
The application's GUI is proxied and displayed at the user's desktop environment
More descriptive:
I have a Windows application that is only operable through its GUI and I want to start it from a Windows VM without desktop-environment.
Similar to what X11 can do with display a window from a remote machine by Xming.
So in the end I can run applications from VMs where the normal user think the application runs locally on their Windows desktop computer, but are actually isolated in a VM.
Sounds a bit like a mixture of Docker and RDP, just for application windows, not a whole desktop env.
Searching the web I've found VRDP with headless VM (https://docs.oracle.com/en/virtualization/virtualbox/6.0/admin/vrde.html) but there isn't enough information if this can work only for application windows too.
Is that possible?

Eclipse IDE remote rebug and remote edit a legacy webapp

I am in a bind here, what's happening is I have a legacy webapp which uses an in-memory database. The app requires 64GB of RAM just to launch and it takes at least 30 minutes to start.
I have to make updates/fixes to this application. Obviously it is impossible to launch it on my PC so everything has to be done on the server. I have considered setting up an Eclipse IDE on the Linux server where this app runs, but that introduces a set of new issues. I really would like to continue using my PC's Eclipse IDE and make edits to the app.
I am able to use the remote debugging capabilities of Eclipse IDE and launch this app from the linux server no problem. However this is not enough. After I make an edit, I need to be able to save/compile the file, and load this change into the server relatively quickly. I can't wait 30 minutes every time I make some updates to the app.
Can anyone recommend ideas on what to do in this scenario? Ideally I would love to be able to launch the app in DEBUG mode inside the Linux Eclipse IDE on the server and connect to this instance using remote debugging from my local/Windows IDE. I would like to make changes in my Windows Eclipse IDE and then quickly copy the files over to the linux server, pick them up in the Linux Eclipse IDE, compile them in the Eclipse IDE instance running in debug mode, and effectively "hot swapping" the changes, thereby avoiding the need to wait 30 minutes for the app to start back up... However when I try to do this, there is a caveat... I can't seem to be able to launch the webapp in Linux Eclipse IDE in both DEBUG mode and also remote-debug-connect to it, the error I am getting in Eclipse is:
"Cannot load this JVM TI agent twice"
I get what is going on: the local debugger is launching tomcat with the -agentlib:jdwp parameter and on top of it, I am trying to force it to also start up with the same arguments and so it complains, but is there some way to trick it into allowing me to remote connect into this debug session from my Windows server?
I managed to solve this issue by updating Tomcat's context.xml to support reloadable mode:
<Context reloadable="true">
And in the app to set it to reloadable in WEB-INF/web.xml:
<web-app reloadable="true">
Now I am able to make edits in my local windows Eclipse IDE, Save them, and they automatically get updated on the server side.

How to add additional installer to start menu using ClickOnce

I have created a solution that comprise of a WPF application and a mobile device application. What I am trying to figure out is how to facilitate the installation of the mobile application.
When I publish and install the WPF desktop application it creates a start menu folder for the application. Optimally I would like to add the mobile application .msi to this menu but I'm not sure if this is supported by ClickOnce.
Any advice or guidance would be most hopeful.
I suggest looking at Inno Setup. Its a free installer for windows applications and has a simple scripting/wizard process. It'll provide this and all the normal installer functions (install location, start menu, desktop icon etc). It also provides an uninstaller

Categories